148 lines
5.5 KiB
XML
148 lines
5.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2012 The CyanogenMod Project (DvTonder)
|
|
|
|
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.
|
|
-->
|
|
|
|
<!-- CyanogenMod Weather Panel -->
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/weather_panel"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="?android:attr/selectableItemBackground" >
|
|
|
|
<TextView
|
|
android:id="@+id/weather_no_data"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="12sp"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:paddingTop="8dip"
|
|
style="@style/label_shadow"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/weather_refresh"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_below="@id/weather_no_data"
|
|
android:textSize="12sp"
|
|
android:paddingBottom="8dip"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
style="@style/label_shadow"
|
|
android:visibility="gone" />
|
|
|
|
<ImageView
|
|
android:id="@+id/weather_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:paddingLeft="4dip"
|
|
android:paddingRight="4dip"
|
|
android:paddingBottom="4dip"
|
|
android:gravity="center"
|
|
android:src="@android:drawable/ic_dialog_alert" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@id/weather_image"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="4dip"
|
|
android:paddingRight="4dip"
|
|
android:paddingBottom="4dip" >
|
|
|
|
<TextView
|
|
android:id="@+id/weather_city"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:layout_alignParentRight="true"
|
|
android:gravity="right"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
style="@style/label_shadow" />
|
|
|
|
<TextView
|
|
android:id="@+id/weather_condition"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/weather_city"
|
|
android:layout_alignParentRight="true"
|
|
android:gravity="right"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:textSize="12sp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
style="@style/label_shadow" />
|
|
|
|
<TextView
|
|
android:id="@+id/update_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="right"
|
|
android:layout_below="@id/weather_condition"
|
|
android:layout_alignParentRight="true"
|
|
android:textSize="8sp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
style="@style/label_shadow" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/weather_temps_panel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/weather_image"
|
|
android:orientation="horizontal"
|
|
android:layout_centerVertical="true" >
|
|
|
|
<TextView
|
|
android:id="@+id/weather_temp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:textSize="20sp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
style="@style/label_shadow" />
|
|
|
|
<ImageView
|
|
android:id="@+id/weather_divider"
|
|
android:layout_below="@id/weather_temp"
|
|
android:layout_width="44dip"
|
|
android:layout_height="1dip"
|
|
android:background="@android:drawable/divider_horizontal_dark" />
|
|
|
|
<TextView
|
|
android:id="@+id/weather_low_high"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/weather_divider"
|
|
android:layout_centerHorizontal="true"
|
|
android:paddingTop="2dip"
|
|
android:textSize="12sp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
style="@style/label_shadow" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|