-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style is not applied to the FAB button #11
Comments
Hi @carvalhorr. The problem with styling the What kind of styles were you trying to apply? I can help you figure out how to apply them to just the button (or make plans for a new release that will allow it). |
Thanks, @markormesher. I would like the same syle that is applied in the other FAB. The style is defined here: https://github.com/OneBusAway/onebusaway-android/blob/master/onebusaway-android/src/main/res/values/styles.xml (See the style name "OneBusAway.FloatingActionButton") |
@carvalhorr What device/emulator/Android version was the screenshot from? I had a similar issue when adding the setting for "left hand mode" to OneBusAway Android (OneBusAway/onebusaway-android@625b262), which simply flips the My Location FAB to be aligned to parent left instead of parent right (i.e., moves it to the left side of the screen). From the above commit description:
It's been a while since I looked at this, so I'm not sure if it's related or not. But it would be good to know which device/emulator you're seeing this on. |
This is an emulator running API level 23. |
Dragging up an old issue: one thing on my list to add in v2.1 is exposure of the core views making up the FAB (the card view, the icon wrapper, etc). I imagine you've worked around this already, but that should resolve this for anyone coming across this in the future. |
Something like this: https://github.com/markormesher/android-fab/compare/expose-underlying-views |
When I apply a style in XML to the FAB what gets styled is the clickable area that fills the entire screen. Would it be possible to apply the style to the button instead?
Example:
If I use the style tag:
<uk.co.markormesher.android_fab.FloatingActionButton style="my_style_here" />
I get this:
The text was updated successfully, but these errors were encountered: