| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| |
| <ImageView android:id="@+id/weather_near_cloud" |
| android:layout_width="@dimen/weather_card_near_cloud" |
| android:layout_height="@dimen/weather_card_near_cloud" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentRight="true" |
| android:src="@drawable/cloud_384" |
| android:scaleType="fitXY" |
| android:translationY="@dimen/weather_card_cloud_vertical_margin" |
| android:layout_marginRight="@dimen/weather_card_near_margin_right"/> |
| <ImageView android:id="@+id/weather_far_cloud" |
| android:layout_width="@dimen/weather_card_far_cloud" |
| android:layout_height="@dimen/weather_card_far_cloud" |
| android:layout_centerHorizontal="true" |
| android:layout_alignParentTop="true" |
| android:src="@drawable/cloud_192" |
| android:scaleType="fitXY" |
| android:translationY="@dimen/weather_card_cloud_vertical_margin"/> |
| |
| <!-- Panel shown for the weather --> |
| <LinearLayout android:id="@+id/weather_panel" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:orientation="horizontal"> |
| <TextView android:id="@+id/weather_temperature" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:fontFamily="sans-serif-light" |
| android:textColor="@color/cluster_font_primary" |
| android:text="@string/dummy_weather_temperature" |
| android:textSize="@dimen/speedo_speed_min_font_size"/> |
| <LinearLayout android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:layout_gravity="center" |
| android:paddingLeft="@dimen/weather_card_text_left_padding"> |
| <TextView android:id="@+id/weather_forecast" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="@dimen/font_size_large" |
| android:textColor="@color/cluster_font_primary" |
| android:text="@string/dummy_weather_forecast" |
| android:translationY="6px"/> |
| <TextView android:id="@+id/weather_location" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="@dimen/font_size_large" |
| android:textColor="@color/cluster_font_secondary" |
| android:fontFamily="@string/font_family_secondary" |
| android:text="@string/dummy_weather_location"/> |
| </LinearLayout> |
| </LinearLayout> |
| </merge> |