All Projects β†’ nambicompany β†’ Expandable Fab

nambicompany / Expandable Fab

Licence: mit
A highly customizable 'speed dial' FloatingActionButton implementation.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Expandable Fab

Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (+296.43%)
Mutual labels:  material-design, android-ui, floatingactionbutton
Bubble Navigation
πŸŽ‰ [Android Library] A light-weight library to easily make beautiful Navigation Bar with ton of 🎨 customization option.
Stars: ✭ 1,537 (+2644.64%)
Mutual labels:  material-design, widget, android-ui
Floatingactionbuttonspeeddial
A Floating Action Button Speed Dial implementation for Android that follows the Material Design specification (https://material.io/components/buttons-floating-action-button#types-of-transitions)
Stars: ✭ 1,164 (+1978.57%)
Mutual labels:  material-design, android-ui, floatingactionbutton
Carbon
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.
Stars: ✭ 2,942 (+5153.57%)
Mutual labels:  material-design, widget, android-ui
Material Viewpagerindicator
Dot-based Android ViewPager indicator with Material Design animations.
Stars: ✭ 511 (+812.5%)
Mutual labels:  material-design, widget
Cookiebar2
Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
Stars: ✭ 499 (+791.07%)
Mutual labels:  material-design, android-ui
Android Material Design For Pre Lollipop
Various UI implementations, animations & effects based on Material Design compatible with pre Lollipop devices as well. (Work in progess)
Stars: ✭ 585 (+944.64%)
Mutual labels:  material-design, android-ui
Materialdialog Android
πŸ“±Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily.
Stars: ✭ 602 (+975%)
Mutual labels:  material-design, android-ui
Material Progressview
πŸ”₯A beautiful, gradual and simple used progress view for android.
Stars: ✭ 406 (+625%)
Mutual labels:  material-design, android-ui
Materialfavoritebutton
Animated favorite/star/like button
Stars: ✭ 586 (+946.43%)
Mutual labels:  material-design, android-ui
Music Player Go
🎢🎼 Very slim music player πŸ‘¨β€πŸŽ€ 100% made in Italy πŸ•πŸŒ³πŸŒžπŸπŸŒ„
Stars: ✭ 654 (+1067.86%)
Mutual labels:  material-design, android-ui
Materialpreferences
A highly flexible set of lovely looking views that provides functionality of preferences.
Stars: ✭ 495 (+783.93%)
Mutual labels:  material-design, android-ui
Bottomnavigation
This Library helps users to use Bottom Navigation Bar (A new pattern from google) with ease and allows ton of customizations
Stars: ✭ 4,299 (+7576.79%)
Mutual labels:  material-design, android-ui
Alerter
An Android Alerting Library
Stars: ✭ 5,213 (+9208.93%)
Mutual labels:  material-design, android-ui
Avatarview
A circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.
Stars: ✭ 429 (+666.07%)
Mutual labels:  widget, android-ui
Guidetocustomviews
The ultimate guide to Android custom views
Stars: ✭ 595 (+962.5%)
Mutual labels:  material-design, android-ui
Morphing Material Dialogs
Material dialog ❀️ morphing animation. An android kotlin UI library for building beautiful animations for converting a floating action button into a material dialog.
Stars: ✭ 806 (+1339.29%)
Mutual labels:  material-design, android-ui
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin πŸ“±πŸŽ¨πŸ¦„
Stars: ✭ 783 (+1298.21%)
Mutual labels:  material-design, android-ui
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-57.14%)
Mutual labels:  material-design, android-ui
Sortabletableview
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Stars: ✭ 1,019 (+1719.64%)
Mutual labels:  material-design, android-ui

ExpandableFab

Maven Central minSdkVersion Library License

expandable-fab website The Nambi Company website

A highly customizable Android widget that displays the available actions of a UI via an expandable set of floating action buttons - with optional labels and fluid animations.

Designed to be screen orientation aware, so it can display different elements from portrait to landscape.

Examples

A working Android app filled with some common use cases and customizations of the ExpandableFab widget can be found and built under examples. Below are a few gifs of the widget in use (this isn't an exhaustive list - the ExpandableFab can do so much more!).

gif of regular ExpandableFab in use gif showing custom properties gif of using custom sizes

gif of using multiple ExpandableFabs gif showing compatibility with BottomAppBar gif showing compatibility with Snackbar

Usage

Consider reading our Medium articles on what the ExpandableFab is and how to use it if you prefer a more in-depth walkthrough.

Otherwise, simply include the ExpandableFab widget in your project via Gradle (replace X.X.X with the latest version shown here Maven Central):

implementation 'com.nambimobile.widgets:expandable-fab:X.X.X'

or Maven:

<dependency>
  <groupId>com.nambimobile.widgets</groupId>
  <artifactId>expandable-fab</artifactId>
  <version>X.X.X</version>
  <type>aar</type>
</dependency>

Then easily add some of the ExpandableFab widget views to your layout like so:

<!-- This is NOT a root view, but should be a child of whatever root view you choose (CoordinatorLayout, ConstraintLayout, etc) -->
<com.nambimobile.widgets.efab.ExpandableFabLayout
  android:layout_width="match_parent"
  android:layout_height="match_parent">
  
  <!-- The next 3 Views will only display in portrait orientation -->          
  <com.nambimobile.widgets.efab.Overlay
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:overlay_orientation="portrait"/>
  <com.nambimobile.widgets.efab.ExpandableFab
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_marginBottom="@dimen/ui_margin_medium"
    android:layout_marginEnd="@dimen/ui_margin_medium"
    android:layout_marginRight="@dimen/ui_margin_medium"
    app:efab_orientation="portrait"/>
  <com.nambimobile.widgets.efab.FabOption
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:fab_orientation="portrait"
    app:label_text="Portrait Option 1"
    android:onClick="onClickPortraitOption1"/>

  <!-- The next 3 Views will only display in landscape orientation -->
  <com.nambimobile.widgets.efab.Overlay
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:overlay_orientation="landscape"/>
  <com.nambimobile.widgets.efab.ExpandableFab
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end"
    android:layout_marginBottom="@dimen/ui_margin_medium"
    android:layout_marginEnd="@dimen/ui_margin_medium"
    android:layout_marginRight="@dimen/ui_margin_medium"
    app:efab_orientation="landscape"/>
  <com.nambimobile.widgets.efab.FabOption
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:fab_orientation="landscape"
    app:label_text="Landscape Option 1"
    android:onClick="onClickLandscapeOption1"/>
            
</com.nambimobile.widgets.efab.ExpandableFabLayout>

Usage Notes

  • Make sure to include the xmlns:app="http://schemas.android.com/apk/res-auto namespace in each layout file that uses the ExpandableFab widget in order to have access to custom properties.
  • Setting ExpandableFabLayout's width and height to match_parent will not impede the viewability, clickability or focusability of any other views in your layout (and is needed for children like Overlay who may need the ability to use the full screen).
  • Defining separate widgets for portrait and landscape orientations is not necessary and was done above simply to showcase the widget's orientation awareness. By default, if you only define one widget, it will automatically be used for both portrait and landscape orientations.
  • Every property in every View within the ExpandableFab widget can be accessed or set programmatically and via XML layout files.
  • None of the customizable properties for the widget Views were set in the example above, so they will all assume their default values automatically.
    • See the library website for a full list of every customizable property for each View, the full Kotlin/Java Docs and many more helpful notes and tips on using the ExpandableFab.

ChangeLog

Please see CHANGELOG.md for a complete account of all changes in each release of this library.

Contributing

Please see CONTRIBUTING.md for information about contributing to this library.

License

MIT License

Copyright (c) 2020 Kelvin Abumere and The Nambi Company

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].