All Projects → robertlevonyan → Customfloatingactionbutton

robertlevonyan / Customfloatingactionbutton

Licence: apache-2.0
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

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Customfloatingactionbutton

Materialchipview
Material Chip view. Can be used as tags for categories, contacts or creating text clouds
Stars: ✭ 1,181 (+431.98%)
Mutual labels:  gradle, material-design, android-development, view
Fitbutton
The button which can use with icon, text, divider, custom ripple effect, border, corner radius e.t.c.
Stars: ✭ 63 (-71.62%)
Mutual labels:  android-development, android-ui, button
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+5079.28%)
Mutual labels:  material-design, android-development, android-ui
Notzz App
📝 A Simple Note-Taking App built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, State Flow, Hilt-Dependency Injection, Jetpack DataStore, Architecture Components, MVVM, Room, Material Design Components).
Stars: ✭ 158 (-28.83%)
Mutual labels:  material-design, android-development, android-ui
Fillingbutton
🔥Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-86.04%)
Mutual labels:  view, android-ui, button
Lovelydialog
This library is a set of simple wrapper classes that are aimed to help you easily create fancy material dialogs.
Stars: ✭ 1,043 (+369.82%)
Mutual labels:  material-design, view, android-ui
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (-38.29%)
Mutual labels:  material-design, android-development, android-ui
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
Stars: ✭ 783 (+252.7%)
Mutual labels:  material-design, android-development, android-ui
Datingapp
Dating UI kit is used for online meet up with girls and boys . The screen contains more than 30 icons and most of all required elements required to design an application like this. The XML and JAVA files contains comments at each and every point for easy understanding. Everything was made with a detail oriented style and followed by today's web trends. Clean coded & Layers are well-organized, carefully named, and grouped.
Stars: ✭ 97 (-56.31%)
Mutual labels:  material-design, android-development, android-ui
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-52.7%)
Mutual labels:  material-design, android-development, android-ui
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (-1.35%)
Mutual labels:  material-design, android-development, android-ui
Textwriter
Animate your texts like never before
Stars: ✭ 140 (-36.94%)
Mutual labels:  android-development, view, android-ui
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback.
Stars: ✭ 853 (+284.23%)
Mutual labels:  android-development, view, android-ui
Expandable Fab
A highly customizable 'speed dial' FloatingActionButton implementation.
Stars: ✭ 56 (-74.77%)
Mutual labels:  material-design, android-ui, floatingactionbutton
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-89.19%)
Mutual labels:  material-design, android-development, 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 (+424.32%)
Mutual labels:  material-design, android-ui, floatingactionbutton
Music Player Go
🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄
Stars: ✭ 654 (+194.59%)
Mutual labels:  material-design, android-development, android-ui
Motiontoast
🌈 A Beautiful Motion Toast Library for Kotlin Android
Stars: ✭ 767 (+245.5%)
Mutual labels:  material-design, android-development, android-ui
Fancyshowcaseview
An easy-to-use customisable show case view with circular reveal animation.
Stars: ✭ 1,662 (+648.65%)
Mutual labels:  material-design, android-development, android-ui
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+693.69%)
Mutual labels:  gradle, android-development, android-ui

Custom Floating Action Button

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

Android Arsenal API Download

Setup

Gradle:

Add following line of code to your module(app) level gradle file

    implementation 'com.robertlevonyan.view:CustomFloatingActionButton:<LATEST_VERSION>'

Maven:

  <dependency>
    <groupId>com.robertlevonyan.view</groupId>
    <artifactId>CustomFloatingActionButton</artifactId>
    <version>LATEST_VERSION</version>
    <type>pom</type>
  </dependency>

Usage

  <com.robertlevonyan.views.customfloatingactionbutton.FloatingActionButton
    android:id="@+id/custom_fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|end" />
<com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionLayout
        android:id="@+id/customFABL"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal">
        
        <!--Add any layout here-->
        
</com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionLayout>        
Circle layout Rounded square layout Square layout
<com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingLayout
        android:id="@+id/floating_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        
        <!--
        Add here only 
        com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionButton 
        or android.support.design.widget.FloatingActionButton,
        other views will be neglected by the layout
        -->
        
        <!--Top view will be selected as a toggle for menu-->
        <com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionButton 
        ... />
        
        <com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionButton 
        ... />
        
        <com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionButton 
        ... />
        
        <com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingActionButton 
        ... />
        
        <android.support.design.widget.FloatingActionButton
        ... />
        
</com.robertlevonyan.examples.customfloatingactionbutton.view.FloatingLayout>
Up Down Right Left

Attributes

Custom Atributes Description
app:fabType Visual style of Floating Action Button (values: circle (default), square, roundedSquare)
app:fabSizes Sizes of Floating Action Button (values: normal (default), mini)
app:fabElevation Change the elevation of view
app:fabColor Custom color for Floating Action Button (default value is accent color)
app:fabIcon Custom icon for Floating Action Button
app:fabIconColor Custom color for icon
app:fabRippleColor Custom ripple color for button
app:fabIconPosition Icon position for icon (values: start (default), top, end, bottom)
app:fabMenuStyle Animation style for items appearing (values: popUp (default), popDown, popRight, popLeft)
android:gravity Gravity of menu and items
app:fabAnimateMenu Flag to animate menu toggle
app:fabAnimateDuration Flag to animate menu toggle

You can set a text and customize it using 'android' namespace like on a normal Button or TextView.

Customizing from code

    floatingActionButton.fabType = FabType.FAB_TYPE_CIRCLE  /* Set button type FabType.FAB_TYPE_CIRCLE, 
                                                                               FabType.FAB_TYPE_SQUARE, 
                                                                               FabType.FAB_TYPE_ROUNDED_SQUARE */                           
    floatingActionButton.fabSize = FabSize.FAB_SIZE_MINI    /* Set button size FabSize.FAB_SIZE_NORMAL, 
                                                                               FabSize.FAB_SIZE_MINI */
    
    floatingActionButton.fabElevation = 7f                  // Change elevation
    floatingActionButton.fabColor = myFabColor              // Change background color
    floatingActionButton.fabIcon = myFabIconDrawable        // Change icon
    floatingActionButton.fabIconColor = myFabIconColor      // Change icon color
    floatingActionButton.fabRippleColor = myFabRippleColor  // Change ripple color
    floatingActionButton.fabIconPosition = FabIconPosition.FAB_ICON_START /* Change icon position                   
                                                                               FabIconPosition.FAB_ICON_START, 
                                                                               FabIconPosition.FAB_ICON_TOP,
                                                                               FabIconPosition.FAB_ICON_END, 
                                                                               FabIconPosition.FAB_ICON_BOTTOM */
    floatingActionLayout.fabType = FabType.FAB_TYPE_CIRCLE  /* Set button type FabType.FAB_TYPE_CIRCLE, 
                                                                               FabType.FAB_TYPE_SQUARE, 
                                                                               FabType.FAB_TYPE_ROUNDED_SQUARE */     
    floatingActionLayout.fabElevation = 7f                  // Change elevation
    floatingActionLayout.fabColor = myFabColor              // Change background color
    floatingActionButton.fabRippleColor = myFabRippleColor  // Change ripple color
        floatingLayout.fabAnimationStyle = FabMenuAnimation.ANIMATION_POP_UP /* Set the pop animation of items 
                                                                               FabMenuAnimation.ANIMATION_POP_UP, 
                                                                               FabMenuAnimation.ANIMATION_POP_DOWN,
                                                                               FabMenuAnimation.ANIMATION_POP_RIGHT,
                                                                               FabMenuAnimation.ANIMATION_POP_LEFT */

Setting Listeners

    //Java
    floatingLayout.setOnMenuExpandedListener(new FloatingLayout.OnMenuExpandedListener() {
            @Override
            public void onMenuExpanded() {
                // Do stuff when expanded...
            }

            @Override
            public void onMenuCollapsed() {
                // Do stuff when collapsed...
            }
        });
    //Kotlin
    floatingLayout.doOnExpand {
        // Do stuff when expanded...
    }
    
    floatingLayout.doOnCollapse {
        // Do stuff when collapsed...
    }

Versions

3.0.1 - 3.0.5

Small updates

3.0.0

New version fully rewritten in Kotlin with several bugfixes

2.1.0

Some bug fixing

2.0.0 - 2.0.4

Second version of library. Totaly rewritten. Added Floating action layout and Floating layout

1.0.0 - 1.0.3

First version of library with some bugfixes

Contact

Licence

    Custom Floating Action Button©
    Copyright 2017 Robert Levonyan
    Url: https://github.com/robertlevonyan/materialChipView
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
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].