【开源】DashboardLayout
DashboardLayout
- https://github.com/rafi-kamal/Android-Dashboard-Layout-Library
介绍:
Dashboard Layout可以让你不需要考虑GridLayout,adapter等乱七八糟的东西就实现自己的dashboard(一种网格布局),兼容2.3运行效果:
![]()
使用说明:
直接将DashboardLayout作为布局的根节点。
推荐在你的布局中Button的样式使用style/DashboardButton
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<cubi.rafi.DashboardLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/dashboard_user" style="@style/DashboardButton" android:text="My Profile" android:drawableTop="@drawable/dashboard_user" /> <Button android:id="@+id/dashboard_emergency_contact" style="@style/DashboardButton" android:text="Emergency Contact" android:drawableTop="@drawable/dashboard_call" /> <Button android:id="@+id/dashboard_new_accident" style="@style/DashboardButton" android:text="New Accident" android:drawableTop="@drawable/dashboard_add" /> <Button android:id="@+id/dashboard_send_case" style="@style/DashboardButton" android:text="Send Case" android:drawableTop="@drawable/dashboard_message" /> <Button android:id="@+id/dashboard_record" style="@style/DashboardButton" android:text="Record" android:drawableTop="@drawable/dashboard_record" /> <Button android:id="@+id/dashboard_tow_truck" style="@style/DashboardButton" android:text="Tow Truck" android:drawableTop="@drawable/dashboard_truck" /></cubi.rafi.DashboardLayout> |
posted on 2015-04-06 10:58 wasdchenhao 阅读(501) 评论(0) 收藏 举报

浙公网安备 33010602011771号