android-ui是一个 android UI库 安装
|
repositories
{
mavenCentral
(
)
}
dependencies
{
compile
'com.github.markushi:android-ui:1.2'
}
|
Download example apk
组件
ActionView
一个在不同的已经定义好的组件动态切换的库
|
<
at
.
markushi
.
ui
.
ActionView
android
:
id
=
"@+id/action"
android
:
layout_width
=
"56dip"
android
:
layout_height
=
"56dip"
android
:
padding
=
"16dip"
app
:
av_color
=
"@android:color/white"
app
:
av_action
=
"drawer"
/
>
|
你可以动态的改变这个action
|
actionView
.
setAction
(
new
BackAction
(
)
,
ActionView
.
ROTATE_COUNTER_CLOCKWISE
)
;
|
下面是几个内嵌的actions
- DrawerAction
- BackAction
- CloseAction
- PlusAction
RevealColorView
一个模拟在in the Android-L preview 圆圈的方式隐藏显示的组件
github 地址 https://github.com/markushi/android-ui