Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

Commit 6e89499

Browse files
author
Lyla
committed
5.17 Implementing Redlines - list_item_forecast
1 parent 15b7446 commit 6e89499

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

app/src/main/res/layout/list_item_forecast.xml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,57 @@
77
android:gravity="center_vertical"
88
android:minHeight="?android:attr/listPreferredItemHeight"
99
android:orientation="horizontal"
10-
android:background="@drawable/touch_selector"
11-
android:padding="16dp">
10+
android:background="@drawable/touch_selector">
1211

13-
<ImageView
14-
android:id="@+id/list_item_icon"
15-
android:layout_width="wrap_content"
16-
android:layout_height="wrap_content"/>
12+
<FrameLayout
13+
android:layout_width="60dp"
14+
android:layout_height="wrap_content">
15+
<ImageView
16+
android:id="@+id/list_item_icon"
17+
android:layout_width="wrap_content"
18+
android:layout_height="wrap_content"/>
19+
</FrameLayout>
1720

1821
<LinearLayout
1922
android:layout_height="wrap_content"
2023
android:layout_width="0dp"
21-
android:layout_weight="1"
22-
android:orientation="vertical"
23-
android:paddingLeft="16dp">
24+
android:layout_weight="7"
25+
android:orientation="vertical">
2426

2527
<TextView
2628
android:id="@+id/list_item_date_textview"
2729
android:layout_width="wrap_content"
28-
android:layout_height="wrap_content"/>
30+
android:layout_height="wrap_content"
31+
android:fontFamily="sans-serif-condensed"
32+
android:textAppearance="?android:textAppearanceLarge"/>
2933

3034
<TextView
3135
android:id="@+id/list_item_forecast_textview"
3236
android:layout_width="wrap_content"
33-
android:layout_height="wrap_content"/>
34-
37+
android:layout_height="wrap_content"
38+
android:fontFamily="sans-serif-condensed"
39+
android:textAppearance="?android:textAppearanceSmall"/>
3540
</LinearLayout>
3641

3742
<LinearLayout
38-
android:layout_width="wrap_content"
43+
android:layout_width="0dp"
44+
android:layout_weight="5"
3945
android:layout_height="wrap_content"
4046
android:orientation="vertical">
4147

4248
<TextView
4349
android:id="@+id/list_item_high_textview"
4450
android:layout_width="wrap_content"
45-
android:layout_height="wrap_content"/>
51+
android:layout_height="wrap_content"
52+
android:fontFamily="sans-serif-condensed"
53+
android:textAppearance="?android:textAppearanceLarge"/>
4654

4755
<TextView
4856
android:id="@+id/list_item_low_textview"
4957
android:layout_width="wrap_content"
50-
android:layout_height="wrap_content"/>
58+
android:layout_height="wrap_content"
59+
android:fontFamily="sans-serif-condensed"
60+
android:textAppearance="?android:textAppearanceSmall"/>
5161
</LinearLayout>
5262

5363
</LinearLayout>

0 commit comments

Comments
 (0)