platform_frameworks_support
kandi X-RAY | platform_frameworks_support Summary
kandi X-RAY | platform_frameworks_support Summary
platform_frameworks_support
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Layout the navigation button
- Add custom views with gravity
- Returns the top position of a child view
- Calculates the measured width of a list of views
- Handles a command
- Handles a session command2
- Connect to the server
- Called when a layout has been changed
- Override in order to configure the child view hierarchy
- Create the badge drawer
- Updates all child views
- Create the example
- Init the RecyclerView
- Override this method to be called when a focus is found in the list view
- Set up listeners on the media player
- Called when the grid is focusable
- Initialize the UI
- Initializes the dialog
- Ends animation
- Calculate the width and height of the view
- Create the media view
- Adjusts the layout of a chunk
- Handles a touch event
- Indicates if the view should be displayed
- Override in order to customize the layout
- Measure the view
platform_frameworks_support Key Features
platform_frameworks_support Examples and Code Snippets
Community Discussions
Trending Discussions on platform_frameworks_support
QUESTION
Note: I've seen the existing question titled "Align Snackbar's Action on the right", however this does not address my particular question.
According to the material design spec the action in a snackbar should be right/end aligned. The default behaviour on smaller screens seems to work as expected (full width of screen, action is aligned to the right of the screen), but on tablets I'm seeing the action immediately next to the description/title text with some padding. Example here:
Snackbar action position example
I've seen this on a real Nexus 9 (api 25), and 3 emulators (api 22, 23, and 24) in both portrait and landscape.
The layout xml for the snackbar contents in the Android source (design_layout_snackbar_include.xml) seems to suggest the action button should be right/end aligned so I'm a bit baffled as to why I'm not seeing this.
I first saw this occurring in one of the apps my company is developing, and I've now made a test app to reproduce the issue (which I used to produce the example image linked earlier). All the app does is display "Hello World!" in an activity, and when the back button is pressed a snackbar is shown to confirm the action. My test activity looks like this:
...ANSWER
Answered 2017-Jan-16 at 06:11This is a bug introduced with the 25.1.0 support library. Reverting back to 25.0.1 results in the correct behaviour. Turns out a bug report had already been filed here:
Issue 231850: Snackbar Action Text Not Right-Aligned in 25.1.0
Thanks ianhanniballake for the suggestion of it being a regression in the support library update.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install platform_frameworks_support
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page