All Projects → bitvale → LavaFab

bitvale / LavaFab

Licence: other
💧 Android floating action button menu with "lava" animation

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to LavaFab

Fab
🛍️ A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.
Stars: ✭ 24 (-52.94%)
Mutual labels:  fab, floating-action-button
Fabsmenu
A simple library to use a menu of FloatingActionButtons from Design Support Library that follow Material Design Guidelines
Stars: ✭ 324 (+535.29%)
Mutual labels:  menu, fab
Fabulousfilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
Stars: ✭ 2,477 (+4756.86%)
Mutual labels:  fab, floating-action-button
Expandablemenu
Expandable Menu button
Stars: ✭ 47 (-7.84%)
Mutual labels:  menu, fab
easy-animated-vector-drawable
A library that helps using Animated Vector Drawables.
Stars: ✭ 40 (-21.57%)
Mutual labels:  fab, floating-action-button
flutter fab dialer
Floating action button dialer
Stars: ✭ 66 (+29.41%)
Mutual labels:  menu, fab
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: ✭ 35 (-31.37%)
Mutual labels:  menu
floatly
An extension that adds a floating button for browser quick actions
Stars: ✭ 32 (-37.25%)
Mutual labels:  floating-action-button
menu-bundle
Extends the KnpMenuBundle to work with PHPCR ODM
Stars: ✭ 32 (-37.25%)
Mutual labels:  menu
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-66.67%)
Mutual labels:  menu
django-menu-generator
A straightforward menu generator for Django
Stars: ✭ 24 (-52.94%)
Mutual labels:  menu
PopOverAlert
PopOverAlert is a PopOver style alert view.
Stars: ✭ 56 (+9.8%)
Mutual labels:  menu
navbar.js
Modern Navigation Component
Stars: ✭ 47 (-7.84%)
Mutual labels:  menu
Asuite
ASuite is a simple open source portable launcher for Microsoft Windows.
Stars: ✭ 58 (+13.73%)
Mutual labels:  menu
unity circle menu
Circle Menu is a C# script used in Unity to quickly and easily create GUI circular menus, a great way to add intuitive and ergonomic menus to your applications and games.
Stars: ✭ 44 (-13.73%)
Mutual labels:  menu
priority-plus
A modern implementation of the priority plus navigation pattern.
Stars: ✭ 30 (-41.18%)
Mutual labels:  menu
Nova-Menu-Builder
A Menu Builder for Laravel Nova
Stars: ✭ 63 (+23.53%)
Mutual labels:  menu
MYNavigationController
导航控制器的压缩 , 使得可以将导航范围缩小到指定区域 , 实现页面中的页面效果 . 适用于路径选择,文件选择等
Stars: ✭ 47 (-7.84%)
Mutual labels:  menu
guillotine
Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
Stars: ✭ 28 (-45.1%)
Mutual labels:  menu
ElDewrito-Menu
Possible replacement for Halo Online's UI heavily based on Halo: Reach
Stars: ✭ 22 (-56.86%)
Mutual labels:  menu

LavaFab

sample

License Platform API

This is an Android project allowing to animate a Floating Action Button menu with "lava" animation.

USAGE

Just add LavaFab view in your layout XML and LavaFab library in your project via Gradle:

dependencies {
  implementation 'com.bitvale:lavafab:1.0.1'
}

XML

<com.bitvale.lavafab.LavaFab
    android:id="@+id/lava_fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:lavaBackgroundColor="@color/color_pink"
    app:lavaChild="left|top"
    app:lavaParentSize="@dimen/fab_size"
    app:lavaParentIcon="@drawable/ic_parent"
    app:lavaLeftIcon="@drawable/ic_left"
    app:lavaTopIcon="@drawable/ic_right" 
    app:lavaDrawShadow="true" />

You must use the following properties in your XML to change your LavaFab.

Properties:
  • app:lavaBackgroundColor (color) -> default ?attr/colorAccent
  • app:lavaParentSize (dimension) -> default 56dp
  • app:lavaDrawShadow (boolean) -> default false
  • app:lavaChild (flag) -> default left|top
  • app:lavaParentIcon (drawable) -> default none
  • app:lavaLeftIcon (drawable) -> default none
  • app:lavaLeftTopIcon (drawable) -> default none
  • app:lavaTopIcon (drawable) -> default none
  • app:lavaRightTopIcon (drawable) -> default none
  • app:lavaRightIcon (drawable) -> default none
  • app:lavaRightBottomIcon (drawable) -> default none
  • app:lavaBottomIcon (drawable) -> default none
  • app:lavaLeftBottomIcon (drawable) -> default none

Kotlin

with(lava_fab) {
    setLavaBackgroundResColor(R.color.fab_color)
    setParentOnClickListener { lava_fab_center.trigger() }
    setChildOnClickListener(Child.TOP) { lava_fab_center.collapse() }
    setChildOnClickListener(Child.LEFT) { // some action }
    enableShadow()
    setParentIcon(R.drawable.ic_parent)
    setChildIcon(Child.TOP, R.drawable.ic_child_top)
    setChildIcon(Child.LEFT, R.drawable.ic_child_left)
}

LICENCE

LavaFab by Alexander Kolpakov is licensed under an Apache License 2.0.

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].