Closed barbeau closed 6 years ago
Hi Sean - thanks for raising this issue. Unfortunately this isn't really possible with the currently library due to some short-sighted hard-coded values. However, I've put a few hours into the re-write today and this has been top of my priorities. The button can now be positioned in each corner and the speed-dial menu is position properly (screenshots in follow-up comment).
The re-write will be ready for release shortly, but you're more than welcome to download the tip of the total-re-write
branch and give it a try - it's quite stable, just not documented or 100% feature-complete yet.
Thanks for working on this Mark! I've been slammed lately but this looks great, I will give it a try.
Thanks @markormesher! Sorry I haven't replied sooner - been slammed lately. I'll see if I can test v2.0.0 w/ OneBusAway Android.
Updating to v2 of the FAB library is currently blocked by https://github.com/markormesher/android-fab/issues/24 and https://github.com/markormesher/android-fab/issues/25.
Now unblocked, both above issues are resolved.
@markormesher Thanks, setting the FAB position in v2 works great! Feel free to close this - here's what our "left hand mode" looks like now:
Just realized I can close this myself :). Thanks again for the great library!
Thanks again for the great library!
We have a setting in our app "Left hand mode" that flips FABs to align the left side of the screen instead of the right (used by a small but appreciative audience :)).
I can't seem to find a way to programmatically flip the FAB speed dial menu items so they align to the left side of the screen instead of the right.
Here's what I have so far - I was able to flip the FAB itself - heres, the screenshot:
Here's the code:
Despite looping through the children views, I can't seem to get the expanded speed dial to align left - here's what it looks like expanded:
Ideally the placement of the bike icon and "bikeshare" text would be reversed when changed to the left margin (so the bike icon is against left side of screen), but I'd take just moving the existing label and icon to the left margin as-is.
Am I missing something, or is this just not possible with the current library?
A WIP PR with the above code is at https://github.com/OneBusAway/onebusaway-android/pull/806 if you want to take it for a spin yourself.