Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit 4e75f8f

Browse files
committed
Update README.md
1 parent 97b5872 commit 4e75f8f

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The library requires Android **API Level 14+**.
1010
Watch a short **[Demo Video](https://youtu.be/4jtDpmeod68)** on YouTube or try it using **[Android simulator in the browser](https://appetize.io/app/ffreudbwmyedw5trzhyjknd2jg)** on Appetize.io.
1111

1212
# Screenshots
13-
![Main screen](/screenshots/main_screen.png) ![Menu closed](/screenshots/menu_closed.png) ![Menu default opened](/screenshots/menu_default_opened.png) ![Menu custom opened](/screenshots/menu_custom_opened.png) ![Menu mini opened](/screenshots/menu_mini_opened.png)
13+
![Main screen](/screenshots/main_screen.png) ![Menu closed](/screenshots/menu_closed.png) ![Menu default opened](/screenshots/menu_default_opened.png) ![Menu custom opened](/screenshots/menu_custom_opened.png) ![Menu mini opened](/screenshots/menu_mini_opened.png) ![Menu right opened](/screenshots/menu_right_opened.png) ![Menu down opened](/screenshots/menu_down_opened.png) ![Progress background](/screenshots/progress_background.png) ![Progress no background](/screenshots/progress_no_background.png)
1414

1515
# Features
1616
- Ripple effect on Android Lollipop devices
@@ -19,14 +19,19 @@ Watch a short **[Demo Video](https://youtu.be/4jtDpmeod68)** on YouTube or try i
1919
- Option to disable shadow for buttons and (or) labels
2020
- Option to set custom animations
2121
- Option to set custom icon drawable
22-
- Support for **normal** `56dp` and **mini** `40dp` button sizes.
22+
- Support for **normal** `56dp` and **mini** `40dp` button sizes
2323
- Custom FloatingActionMenu icon animations
24+
- *Option to expand menu up and down*
25+
- *Option to show labels to the left and to the right of the menu*
26+
- *Option to show circle progress on `FloactinActionButton`*
27+
- *Option to add button to the `FloatingActionMenu` programmatically*
28+
- *Option to dim the `FloatinActionMenu`'s background*
2429

2530
# Usage
2631
Add a dependency to your `build.gradle`:
2732
```
2833
dependencies {
29-
compile 'com.github.clans:fab:1.4.0'
34+
compile 'com.github.clans:fab:1.5.0'
3035
}
3136
```
3237
Add the `com.github.clans.fab.FloatingActionButton` to your layout XML file.
@@ -79,7 +84,13 @@ Here are all the **FloatingActionButton**'s xml attributes with their **default
7984
app:fab_size="normal"
8085
app:fab_showAnimation="@anim/fab_scale_up"
8186
app:fab_hideAnimation="@anim/fab_scale_down"
82-
app:fab_label="" />
87+
app:fab_label=""
88+
app:fab_progress_color="#FF009688"
89+
app:fab_progress_backgroundColor="#4D000000"
90+
app:fab_progress_indeterminate="false"
91+
app:fab_progress_max="100"
92+
app:fab_progress="0"
93+
app:fab_progress_showBackground="true"/>
8394
```
8495
All of these **FloatingActionButton**'s attributes has their corresponding getters and setters. So you can set them **programmatically**.
8596

@@ -124,7 +135,10 @@ Here are all the **FloatingActionMenu**'s xml attributes with their **default va
124135
fab:menu_labels_singleLine="false"
125136
fab:menu_labels_ellipsize="none"
126137
fab:menu_labels_maxLines="-1"
127-
fab:menu_labels_style="@style/YourCustomLabelsStyle">
138+
fab:menu_labels_style="@style/YourCustomLabelsStyle"
139+
fab:menu_labels_position="left"
140+
fab:menu_openDirection="up"
141+
fab:menu_backgroundColor="@android:color/transparent">
128142

129143
<com.github.clans.fab.FloatingActionButton
130144
android:id="@+id/menu_item"

0 commit comments

Comments
 (0)