All Projects → emre1512 → FloatingActionMenu

emre1512 / FloatingActionMenu

Licence: other
A floating action button implementation for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FloatingActionMenu

Fabulousfilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
Stars: ✭ 2,477 (+13661.11%)
Mutual labels:  floatingactionbutton, floating-action-button
Fab
🛍️ A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.
Stars: ✭ 24 (+33.33%)
Mutual labels:  floatingactionbutton, floating-action-button
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (+416.67%)
Mutual labels:  floatingactionbutton
SuperToolbar
Android native Toolbar on steroids 💪
Stars: ✭ 52 (+188.89%)
Mutual labels:  androidui
Vue Fab
Vue Floating Action Button
Stars: ✭ 233 (+1194.44%)
Mutual labels:  floatingactionbutton
Springfabmenu
A menu of FloatingActionButton items, designed to be anchored on an AppBarLayout.
Stars: ✭ 116 (+544.44%)
Mutual labels:  floatingactionbutton
Floatingmusicmenu
一款可用于音乐播放器的悬浮菜单按钮(A floating music menu)
Stars: ✭ 247 (+1272.22%)
Mutual labels:  floatingactionbutton
Floaty
❤️ Floating Action Button for iOS
Stars: ✭ 1,266 (+6933.33%)
Mutual labels:  floatingactionbutton
LavaFab
💧 Android floating action button menu with "lava" animation
Stars: ✭ 51 (+183.33%)
Mutual labels:  floating-action-button
EasyToast
An Android library that takes the standard Android Toast to the next level with built-in icons from font-awesome and many styling options that gives your app and user experience an extra awesome feeling!
Stars: ✭ 18 (+0%)
Mutual labels:  androidui
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 (+1133.33%)
Mutual labels:  floatingactionbutton
Floatingtoolbar
A toolbar that morphs from a FloatingActionButton
Stars: ✭ 1,540 (+8455.56%)
Mutual labels:  floatingactionbutton
FloatingViewProtocol
A protocol make your view floating and draggable
Stars: ✭ 36 (+100%)
Mutual labels:  floating-button
Pentagonfloatingactionbutton
Android property animation - The Value Animator
Stars: ✭ 106 (+488.89%)
Mutual labels:  floatingactionbutton
floatly
An extension that adds a floating button for browser quick actions
Stars: ✭ 32 (+77.78%)
Mutual labels:  floating-action-button
Rapidfloatingactionbutton
Quick solutions for Floating Action Button,RapidFloatingActionButton(RFAB)
Stars: ✭ 1,289 (+7061.11%)
Mutual labels:  floatingactionbutton
Jjfloatingactionbutton
Floating Action Button for iOS
Stars: ✭ 243 (+1250%)
Mutual labels:  floatingactionbutton
Floatingactionbuttonexpandable
An android library that brings the floating action button expandable
Stars: ✭ 198 (+1000%)
Mutual labels:  floatingactionbutton
easy-animated-vector-drawable
A library that helps using Animated Vector Drawables.
Stars: ✭ 40 (+122.22%)
Mutual labels:  floating-action-button
flutter fab dialer
Floating action button dialer
Stars: ✭ 66 (+266.67%)
Mutual labels:  floatingactionbutton

CircleProgressBar

https://github.com/emre1512/FloatingActionMenu https://github.com/emre1512/FloatingActionMenu https://www.apache.org/licenses/LICENSE-2.0 https://github.com/emre1512/FloatingActionMenu

A simple library for creating circular progressbars for Android.

Examples

Installation

  • Get it via gradle: compile 'com.emredavarci:floatingactionmenu:1.0.0'

Usage

  1. Add CircleProgressBar to your layout

Warning: This library allows only 4 menu actions. Not 3, not 5.

      <com.emredavarci.floatingactionmenu.FloatingActionMenu
        xmlns:fam="http://schemas.android.com/apk/res-auto"
        android:id="@+id/floatingMenu"
        android:layout_width="match_parent"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:layout_height="80dp"                // Important! Height and radius values should be same!
        fam:radius="80dp"                 // Important! Height and radius values should be same!
        fam:shadowWidth="2dp" 
        fam:scaleRatio="3"
        fam:duration="200"
        fam:bgColor="#4ad6bd"
        fam:menuIconRotateAngle="225"
        fam:menuIconWidth="30dp"
        fam:menuIconHeight="30dp"
        fam:menuIcon="@drawable/default_menu_icon"
        fam:firstActionIcon="@drawable/fav_icon"
        fam:secondActionIcon="@drawable/share_icon"
        fam:thirdActionIcon="@drawable/search_icon"
        fam:fourthActionIcon="@drawable/settings_icon">
    </com.emredavarci.floatingactionmenu.FloatingActionMenu>
  1. Reach it from your activity/fragment etc.
	FloatingActionMenu menu = (FloatingActionMenu) findViewById(R.id.actionmenu);
        menu.setClickEvent(new FloatingActionMenu.ClickEvent() {
            @Override
            public void onClick(int index) {
                Log.d("TAG", String.valueOf(index)); // index of clicked menu item
            }
        });

You can modify it programmatically if you want

Setters

menu.setRadius(radius); 		 // set radius of button
menu.setShadowWitdth(2); 			// set shadow width
menu.setScaleRatio(3); 		    // set scale ratio of button
menu.setDuration(300); 		    // set duration of opening animation
menu.setBgColor("#FF6FD99D"); 	    // set background color of button
menu.setMenuIconRotateAngle(225); 	  // set menu icon rotate angle
menu.setMenuIconWidth(30); 	   // set menu icon width
menu.setMenuIconHeight(30); 		 // set menu icon height
enu.setMenuIcon(R.drawable.menu_icon); 	// set menu icon
menu.setFirstActionIcon(R.drawable.first_icon);  // set first action icon
menu.setSecondActionIcon(R.drawable.second_icon);   // set second action icon
menu.setThirdActionIcon(R.drawable.third_icon);   // set third action icon
menu.setFourthActionIcon(R.drawable.fourth_icon);    // set fourth action icon

Getters

menu.getRadius();     // get radius of button
menu.getShadowWitdth();      // get shadow width
menu.getScaleRatio();    // get scale ratio of button
menu.getDuration();    // get duration of opening animation
menu.getBgColor();   // get background color of button
menu.getMenuIconRotateAngle();   // get menu icon rotate angle
menu.getMenuIconWidth();  // get menu icon width
menu.getMenuIconHeight();     // get menu icon height
menu.getMenuIcon();       // get menu icon
menu.getFirstActionIcon();  // get first action icon
menu.getSecondActionIcon(); // get second action icon
menu.getThirdActionIcon(); // get third action icon
menu.getFourthActionIcon();  // get fourth action icon

LICENSE

Copyright 2017 M. Emre Davarci

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