Revision 2d30558e
Added by Leszek Koltunski over 5 years ago
| src/main/res/layout/dialog_pattern_child_item.xml | ||
|---|---|---|
| 2 | 2 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | 3 |
android:layout_width="fill_parent" |
| 4 | 4 |
android:layout_height="match_parent" |
| 5 |
android:orientation="vertical" >
|
|
| 5 |
android:orientation="horizontal" >
|
|
| 6 | 6 |
|
| 7 | 7 |
<TextView |
| 8 | 8 |
android:id="@+id/child" |
| 9 |
android:layout_width="wrap_content" |
|
| 9 |
android:background="@color/dark_grey" |
|
| 10 |
android:layout_width="match_parent" |
|
| 10 | 11 |
android:layout_height="wrap_content" |
| 11 | 12 |
android:layout_marginTop="5sp" |
| 12 | 13 |
android:layout_marginBottom="5sp" |
| 13 |
android:paddingLeft="35sp" |
|
| 14 |
android:paddingRight="10sp" |
|
| 14 |
android:layout_marginLeft="10sp" |
|
| 15 |
android:layout_marginRight="10sp" |
|
| 16 |
android:paddingLeft="25sp" |
|
| 15 | 17 |
/> |
| 16 | 18 |
|
| 17 | 19 |
</LinearLayout> |
| src/main/res/values/colors.xml | ||
|---|---|---|
| 4 | 4 |
<color name="colorPrimaryDark">#00574B</color> |
| 5 | 5 |
<color name="colorAccent">#D81B60</color> |
| 6 | 6 |
<color name="red">#ffff0000</color> |
| 7 |
<color name="dark_grey">#ff222222</color> |
|
| 7 | 8 |
<color name="grey">#ff333333</color> |
| 8 | 9 |
<color name="light_grey">#ff555555</color> |
| 9 | 10 |
<color name="black">#ff010101</color> |
Also available in: Unified diff
Reinvent the Pattern Dialog (Part 4)