Pavel Maltsev | df4db1d | 2016-07-11 20:39:13 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2016 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| 18 | |
| 19 | <ImageView android:id="@+id/weather_near_cloud" |
| 20 | android:layout_width="@dimen/weather_card_near_cloud" |
| 21 | android:layout_height="@dimen/weather_card_near_cloud" |
| 22 | android:layout_alignParentBottom="true" |
| 23 | android:layout_alignParentRight="true" |
| 24 | android:src="@drawable/cloud_384" |
| 25 | android:scaleType="fitXY" |
| 26 | android:translationY="@dimen/weather_card_cloud_vertical_margin" |
| 27 | android:layout_marginRight="@dimen/weather_card_near_margin_right"/> |
| 28 | <ImageView android:id="@+id/weather_far_cloud" |
| 29 | android:layout_width="@dimen/weather_card_far_cloud" |
| 30 | android:layout_height="@dimen/weather_card_far_cloud" |
| 31 | android:layout_centerHorizontal="true" |
| 32 | android:layout_alignParentTop="true" |
| 33 | android:src="@drawable/cloud_192" |
| 34 | android:scaleType="fitXY" |
| 35 | android:translationY="@dimen/weather_card_cloud_vertical_margin"/> |
| 36 | |
| 37 | <!-- Panel shown for the weather --> |
| 38 | <LinearLayout android:id="@+id/weather_panel" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_centerVertical="true" |
| 42 | android:orientation="horizontal"> |
| 43 | <TextView android:id="@+id/weather_temperature" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_gravity="center" |
| 47 | android:fontFamily="sans-serif-light" |
| 48 | android:textColor="@color/cluster_font_primary" |
| 49 | android:text="@string/dummy_weather_temperature" |
| 50 | android:textSize="@dimen/speedo_speed_min_font_size"/> |
| 51 | <LinearLayout android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:orientation="vertical" |
| 54 | android:layout_gravity="center" |
| 55 | android:paddingLeft="@dimen/weather_card_text_left_padding"> |
| 56 | <TextView android:id="@+id/weather_forecast" |
| 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:textSize="@dimen/font_size_large" |
| 60 | android:textColor="@color/cluster_font_primary" |
| 61 | android:text="@string/dummy_weather_forecast" |
| 62 | android:translationY="6px"/> |
| 63 | <TextView android:id="@+id/weather_location" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:textSize="@dimen/font_size_large" |
| 67 | android:textColor="@color/cluster_font_secondary" |
| 68 | android:fontFamily="@string/font_family_secondary" |
| 69 | android:text="@string/dummy_weather_location"/> |
| 70 | </LinearLayout> |
| 71 | </LinearLayout> |
| 72 | </merge> |