|
44 | 44 | android:layout_marginTop="8dp" |
45 | 45 | android:layout_marginEnd="8dp" |
46 | 46 | android:layout_marginBottom="40dp" |
47 | | - android:transitionName="@{String.format(@string/cardView, viewModel.item.getDay())}" |
48 | 47 | android:backgroundTint="@{viewModel.item.getColor()}" |
| 48 | + android:clickable="true" |
| 49 | + android:focusable="true" |
| 50 | + android:transitionName="@{String.format(@string/cardView, viewModel.item.getDay())}" |
49 | 51 | app:cardCornerRadius="24dp" |
50 | 52 | tools:backgroundTint="@android:color/holo_orange_dark"> |
51 | 53 |
|
52 | 54 | <RelativeLayout |
53 | 55 | android:layout_width="match_parent" |
54 | 56 | android:layout_height="wrap_content"> |
55 | 57 |
|
56 | | - |
57 | 58 | <ImageView |
58 | 59 | android:layout_width="170dp" |
59 | 60 | android:layout_height="124dp" |
|
62 | 63 | android:layout_marginEnd="-40dp" |
63 | 64 | android:src="@drawable/ic_splash_big_cloud" /> |
64 | 65 |
|
65 | | - |
66 | 66 | <TextView |
67 | 67 | android:id="@+id/textViewTimeOfDay" |
68 | 68 | android:layout_width="wrap_content" |
|
86 | 86 | android:textColor="@color/white" |
87 | 87 | android:textSize="14sp" |
88 | 88 | android:textStyle="bold" |
89 | | - tools:text="Monday" |
90 | | - android:transitionName="@{String.format(@string/dayOfWeek, viewModel.item.getDay())}" /> |
| 89 | + android:transitionName="@{String.format(@string/dayOfWeek, viewModel.item.getDay())}" |
| 90 | + tools:text="Monday" /> |
91 | 91 |
|
92 | 92 | <ImageView |
93 | 93 | android:id="@+id/imageViewForecastIcon" |
|
96 | 96 | android:layout_below="@id/textViewDayOfWeek" |
97 | 97 | android:layout_centerHorizontal="true" |
98 | 98 | android:layout_marginTop="12dp" |
| 99 | + android:transitionName="@{String.format(@string/forecastIcon, viewModel.item.getDay())}" |
99 | 100 | app:setWeatherIcon="@{viewModel.item.getWeatherItem().icon}" |
100 | | - tools:src="@drawable/ic_splash_big_cloud" |
101 | | - android:transitionName="@{String.format(@string/forecastIcon, viewModel.item.getDay())}"/> |
| 101 | + tools:src="@drawable/ic_splash_big_cloud" /> |
102 | 102 |
|
103 | 103 | <TextView |
104 | 104 | android:id="@+id/textViewTemp" |
|
111 | 111 | android:textColor="@color/white" |
112 | 112 | android:textSize="26sp" |
113 | 113 | android:textStyle="bold" |
114 | | - tools:text="23°" |
115 | | - android:transitionName="@{String.format(@string/temp, viewModel.item.getDay())}"/> |
| 114 | + android:transitionName="@{String.format(@string/temp, viewModel.item.getDay())}" |
| 115 | + tools:text="23°" /> |
116 | 116 |
|
117 | 117 | <LinearLayout |
118 | 118 | android:id="@+id/linearLayoutTempMaxMin" |
|
0 commit comments