1+ <?xml version =" 1.0" encoding =" utf-8" ?>
12<!--
23 Copyright (C) 2015 The Android Open Source Project
34
1415 limitations under the License.
1516 -->
1617<!-- Layout for weather forecast list item for today -->
17- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
18+ <FrameLayout
19+ xmlns : android =" http://schemas.android.com/apk/res/android"
20+ xmlns : app =" http://schemas.android.com/apk/res-auto"
21+ xmlns : tools =" http://schemas.android.com/tools"
1822 android : layout_width =" match_parent"
1923 android : layout_height =" wrap_content"
20- android : gravity =" center_vertical"
21- android : minHeight =" ?android:attr/listPreferredItemHeight"
22- android : orientation =" horizontal"
23- android : background =" @drawable/today_touch_selector" >
24-
25- <LinearLayout
24+ android : background =" @drawable/touch_selector_white"
25+ android : elevation =" 4dp"
26+ >
27+ <android .support.v7.widget.GridLayout
28+ android : layout_width =" match_parent"
2629 android : layout_height =" wrap_content"
27- android : layout_width =" 0dp"
28- android : layout_weight =" 7"
29- android : layout_marginTop =" 16dp"
30- android : layout_marginBottom =" 16dp"
31- android : layout_marginLeft =" 60dp"
32- android : layout_marginStart =" 60dp"
33- android : orientation =" vertical" >
30+ app : columnCount =" 2" >
3431
3532 <TextView
3633 android : id =" @+id/list_item_date_textview"
37- android : layout_width =" match_parent"
38- android : layout_height =" wrap_content"
39- android : textAppearance =" ?android:textAppearanceLarge"
40- android : fontFamily =" sans-serif-condensed"
41- android : textColor =" @color/white" />
34+ android : layout_marginBottom =" @dimen/abc_list_item_padding_horizontal_material"
35+ android : layout_marginTop =" @dimen/abc_list_item_padding_horizontal_material"
36+ android : fontFamily =" sans-serif"
37+ android : gravity =" center_horizontal"
38+ android : textAppearance =" @style/TextAppearance.AppCompat.Title"
39+ android : textColor =" @color/secondary_text"
40+ app : layout_columnSpan =" 2"
41+ app : layout_columnWeight =" 1"
42+ app : layout_gravity =" fill_horizontal"
43+ tools : text =" Today, April 03" />
44+
45+ <ImageView
46+ android : id =" @+id/list_item_icon"
47+ android : layout_width =" 0dp"
48+ android : adjustViewBounds =" true"
49+ android : maxHeight =" @dimen/today_icon"
50+ android : maxWidth =" @dimen/today_icon"
51+ app : layout_columnWeight =" 1"
52+ app : layout_gravity =" fill_horizontal"
53+ tools : src =" @drawable/art_clouds" />
4254
4355 <TextView
4456 android : id =" @+id/list_item_high_textview"
45- android : layout_width =" match_parent"
46- android : layout_height =" wrap_content"
47- android : textSize =" 72sp"
57+ android : layout_width =" 0dp"
4858 android : fontFamily =" sans-serif-light"
49- android : textColor =" @color/white" />
59+ android : gravity =" center_horizontal"
60+ android : textColor =" @color/primary_text"
61+ android : textSize =" 72sp"
62+ app : layout_columnWeight =" 1"
63+ app : layout_gravity =" fill_horizontal"
64+ tools : text =" 19" />
65+
66+ <TextView
67+ android : id =" @+id/list_item_forecast_textview"
68+ android : layout_width =" 0dp"
69+ android : fontFamily =" sans-serif"
70+ android : gravity =" center_horizontal"
71+ android : textAppearance =" @style/TextAppearance.AppCompat.Title"
72+ android : textColor =" @color/secondary_text"
73+ app : layout_columnWeight =" 1"
74+ tools : text =" Rainy" />
5075
5176 <TextView
5277 android : id =" @+id/list_item_low_textview"
53- android : layout_width =" match_parent"
54- android : layout_height =" wrap_content"
55- android : textColor =" @color/white"
78+ android : layout_width =" 0dp"
79+ android : layout_marginBottom =" @dimen/abc_list_item_padding_horizontal_material"
80+ android : fontFamily =" sans-serif-light"
81+ android : gravity =" center_horizontal"
82+ android : textColor =" @color/secondary_text"
5683 android : textSize =" 36sp"
57- android : layout_marginLeft =" 8dp"
58- android : layout_marginStart =" 8dp" />
59- </LinearLayout >
60-
61- <LinearLayout
62- android : layout_height =" wrap_content"
63- android : layout_width =" 0dp"
64- android : layout_weight =" 5"
65- android : layout_marginRight =" 16dp"
66- android : layout_marginEnd =" 16dp"
67- android : orientation =" vertical"
68- android : gravity =" center_horizontal|bottom" >
69-
70- <ImageView
71- android : id =" @+id/list_item_icon"
72- android : layout_width =" wrap_content"
73- android : layout_height =" wrap_content"
74- android : layout_gravity =" center_horizontal"
75- android : adjustViewBounds =" true" />
84+ app : layout_columnWeight =" 1"
85+ tools : text =" 10" />
7686
77- <TextView
78- android : id =" @+id/list_item_forecast_textview"
79- android : layout_width =" wrap_content"
80- android : layout_height =" wrap_content"
81- android : fontFamily =" sans-serif-condensed"
82- android : layout_gravity =" center_horizontal"
83- android : textAppearance =" ?android:textAppearanceLarge"
84- android : textColor =" @color/white" />
85- </LinearLayout >
86- </LinearLayout >
87+ </android .support.v7.widget.GridLayout>
88+ </FrameLayout >
0 commit comments