question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snackbar should allow placing the action button on its own line.

See original GitHub issue

From the specification

If an action is long, it can be displayed on a third line.

Example

To do this we should do the following (this assumes #1422 has already been completed): [ ] - Add a new enum dependency property to the Snackbar control. The enum should have the values Inline, SeparateLine, and Auto. The default of the property should be Auto. [ ] - When the property is set to Inline the action button should display to the right of the message (as it works now). [ ] - When the property is set to SeparateLine the action button should be moved below the message and right aligned. [ ] - When the property is set to Auto we should put in a trigger that only moves the action button onto its own line when there are two or more lines of text. We can detect this case by simply watching the height of the Content. [ ] - Ensure that an example of each is present in the demo application.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rgomez90commented, Sep 28, 2019

Actually working on #1422.

Can take a look at this when finished.

1reaction
rgomez90commented, Oct 3, 2019

Yes! I was waiting for you to review #1432, since resolving #1422 before, is needed for this

But I didn’t started, so if @christyjacob4 wants, can take it. I’ll take another one then, no problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snackbars
Snackbars can display a single text button that lets users take action on a process performed by the app. Snackbars shouldn't be the...
Read more >
How to dismiss a Snackbar using its own Action button?
Implement a click action and let it empty . Clicking on empty click action will dismiss snackbar . Snackbar.make(coordinatorLayoutView, "Service ...
Read more >
material design - Should snackbars cover buttons?
I'm designing an app that requires CTAs at the bottom of the screen for most of the flows. This, I have found, presents...
Read more >
Add an action to a message - SnackBar
You can add an action to a Snackbar, allowing the user to respond to your message. ... The user can trigger your action...
Read more >
Snackbar | Android Developers
Snackbars can contain an action which is set via setAction(CharSequence, android.view.View.OnClickListener) .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found