Skip to content
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

Add more FAB options #29

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

georgi-neykov-hub
Copy link

@kobakei, I have added more view attributes for more control apperance of the views inside FabSpeedDial and a few other modifications:

  • Optimize the menu XML layouts to reduce unnecesary nesting of the View hierarchy
  • Allow setting-up the use of useCompatPadding for FABs
  • Allow adding an elevation to the mini-FAB label views
  • Fix layout issues for portrait mode with longer text labels (use RelativeLayout, add ellipsize, and maxlines)
  • Remove the default "+" icon shipped with the library

Georgi Neykov added 9 commits February 4, 2019 12:07
Make the main layout of `FabSpeedDial` use `<merge>` tags and flatten the view hierarchy by one level
- Add `clipToPadding="false"` to workaround menu views' shadow cutoff
- Skip one hierarchy level by directly inflating a `FloatingActionButton` as a menu view for landscape mode
- Allow customizing the mini-FAB labels with a "textapperance style"
- Allow setting an elevation for the mini-FAB labels for API 21+ devices
- Allow selection of the `useCompatPadding` option for FABs, useful for API21+ devices
- Allow setting the spacing between mini-FABs
- The view can be supplied with a `fab_touchGuardId` and will be shown/hidden when needed
- Change the math about the circular reveal animation to properly wait for layout and calculate the FAB center
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant