Skip to content

Commit d62d6f3

Browse files
committed
Add new ButtonIcon to demo
1 parent 87a4301 commit d62d6f3

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

MaterialDesignDemo/res/layout/activity_buttons.xml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:background="#FFF"
67
>
8+
<com.gc.materialdesign.views.ScrollView
9+
android:layout_width="fill_parent"
10+
android:layout_height="fill_parent">
711

812
<LinearLayout
913
android:layout_width="fill_parent"
@@ -107,7 +111,40 @@
107111
materialdesign:iconFloat="@drawable/ic_action_new" />
108112
</RelativeLayout>
109113

110-
<!-- SMALL FLOAT BUTTON -->
114+
<!-- FLOAT BUTTON -->
115+
116+
<RelativeLayout
117+
android:layout_width="fill_parent"
118+
android:layout_height="32dp"
119+
android:layout_marginLeft="24dp" >
120+
121+
<TextView
122+
android:layout_width="wrap_content"
123+
android:layout_height="wrap_content"
124+
android:layout_centerVertical="true"
125+
android:text="Icon Button" />
126+
127+
<View
128+
android:layout_width="fill_parent"
129+
android:layout_height="1dp"
130+
android:layout_alignParentBottom="true"
131+
android:background="#1E88E5" />
132+
</RelativeLayout>
133+
134+
<RelativeLayout
135+
android:layout_width="fill_parent"
136+
android:layout_height="72dp" >
137+
138+
<com.gc.materialdesign.views.ButtonIcon
139+
android:id="@+id/buttonIcon"
140+
android:layout_width="wrap_content"
141+
android:layout_height="wrap_content"
142+
android:layout_centerInParent="true"
143+
android:background="#1E88E5"
144+
materialdesign:iconFloat="@drawable/ic_next" />
145+
</RelativeLayout>
146+
147+
<!-- FLOAT BUTTON -->
111148

112149
<RelativeLayout
113150
android:layout_width="fill_parent"
@@ -127,6 +164,7 @@
127164
android:background="#1E88E5" />
128165
</RelativeLayout>
129166
</LinearLayout>
167+
</com.gc.materialdesign.views.ScrollView>
130168
<com.gc.materialdesign.views.ButtonFloat
131169
android:id="@+id/buttonFloat"
132170
android:layout_width="wrap_content"
@@ -138,4 +176,4 @@
138176
materialdesign:animate="true"
139177
materialdesign:iconFloat="@drawable/ic_action_new" />
140178

141-
</RelativeLayout>
179+
</RelativeLayout>

0 commit comments

Comments
 (0)