Skip to content

Commit 5c9e341

Browse files
author
Markus Hintersteiner
committed
1.2 ActionView release
1 parent b426243 commit 5c9e341

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed

README.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# android-ui
2-
Android library for UI components.
3-
2+
Android library for UI components.<br />
43
Gradle integration:
54

65
```
@@ -9,21 +8,44 @@ repositories {
98
}
109
1110
dependencies {
12-
compile 'com.github.markushi:android-ui:1.1'
11+
compile 'com.github.markushi:android-ui:1.2'
1312
}
1413
```
1514

16-
## RevealColorView
17-
<img src="https://raw.githubusercontent.com/markushi/android-ui/master/example.gif" width="280px" alt="Sample" />
18-
15+
Requires API level 14+ <br />
1916
[Download example apk](example.apk)
2017

21-
Requires API level 14+
18+
## Components
19+
20+
### ActionView
21+
<img src="https://raw.githubusercontent.com/markushi/android-ui/master/example-action.gif" alt="ActionView Example" /><br />
22+
A widget which can dynamically animate between defined Actions.
23+
```
24+
<at.markushi.ui.ActionView
25+
android:id="@+id/action"
26+
android:layout_width="56dip"
27+
android:layout_height="56dip"
28+
android:padding="16dip"
29+
app:av_color="@android:color/white"
30+
app:av_action="drawer"/>
31+
```
32+
You can dynamically change the action with:
33+
```
34+
actionView.setAction(new BackAction(), ActionView.ROTATE_COUNTER_CLOCKWISE);
35+
```
36+
37+
The following Actions are built in:
2238

23-
A component which mimics parts of the circular reveal/hide animation introduced in Android-L
39+
* DrawerAction
40+
* BackAction
41+
* CloseAction
42+
* PlusAction
2443

25-
(See: https://developer.android.com/preview/material/animations.html#reveal)
44+
Please note: ActionView is still under development. The API might change at any time.
2645

46+
### RevealColorView
47+
<img src="https://raw.githubusercontent.com/markushi/android-ui/master/example-reveal.gif" width="280px" alt="RevealColorView Example" /><br />
48+
A component which mimics parts of the circular reveal/hide animation introduced [in the Android-L preview](http://developer.android.com/preview/material/animations.html#reveal).<br />
2749
Note: This is not a backport of the original reveal/hide effect.
2850

2951
See [this example gist](https://gist.github.com/markushi/68ce8df77bed164b6275) on how to use it.

example-action.gif

20.6 KB
Loading
File renamed without changes.

example.apk

7.98 KB
Binary file not shown.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1.1
1+
VERSION_NAME=1.2
22
VERSION_CODE=1
33
GROUP=com.github.markushi
44

0 commit comments

Comments
 (0)