Skip to content

Commit 5251a73

Browse files
committed
[demo] Added variable instance spinner
1 parent bf06889 commit 5251a73

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

demo/src/main/res/layout/activity_variable_fonts.xml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,42 @@
2929
android:layout_marginTop="4dp"
3030
android:layout_marginRight="4dp"/>
3131

32+
<Spinner
33+
android:id="@+id/spinner_variable_instance"
34+
style="@style/FormSpinner"
35+
android:layout_width="match_parent"
36+
android:layout_height="wrap_content"
37+
android:layout_marginLeft="4dp"
38+
android:layout_marginTop="4dp"
39+
android:layout_marginRight="4dp"/>
40+
3241
<ListView
3342
android:id="@+id/list_view_axis"
3443
android:layout_width="match_parent"
3544
android:layout_height="120dp"
3645
android:layout_marginTop="4dp"
37-
android:layout_marginBottom="4dp"
46+
android:layout_marginBottom="8dp"
3847
android:divider="@null"
3948
android:dividerHeight="0dp"/>
4049

41-
<com.mta.tehreer.widget.TLabel
42-
android:id="@+id/label_preview"
50+
<FrameLayout
4351
android:layout_width="match_parent"
44-
android:layout_height="match_parent"
45-
android:paddingLeft="8dp"
46-
android:paddingRight="8dp"
47-
app:gravity="start"
48-
app:text="ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789"
49-
app:textColor="@android:color/black"
50-
app:textSize="48sp"/>
52+
android:layout_height="match_parent">
53+
54+
<ScrollView
55+
android:layout_width="match_parent"
56+
android:layout_height="wrap_content"
57+
android:layout_gravity="center">
58+
59+
<com.mta.tehreer.widget.TLabel
60+
android:id="@+id/label_preview"
61+
android:layout_width="match_parent"
62+
android:layout_height="wrap_content"
63+
android:padding="8dp"
64+
app:gravity="start"
65+
app:text="ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789"
66+
app:textColor="@android:color/black"
67+
app:textSize="56sp"/>
68+
</ScrollView>
69+
</FrameLayout>
5170
</LinearLayout>

0 commit comments

Comments
 (0)