1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:paddingLeft="@dimen/outside_padding"
android:paddingRight="@dimen/outside_padding">
<!-- Weather -->
<TextView
android:id="@+id/temperature"
style="@style/TemperatureStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
tools:text="72°"
android:layout_alignParentTop="true"
android:layout_toStartOf="@+id/time" />
<ImageView
android:id="@+id/icon"
android:layout_width="96dp"
android:layout_height="96dp"
android:scaleType="fitXY"
android:layout_alignBottom="@id/temperature"
android:layout_marginBottom="15dp"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@id/temperature"
tools:src="@drawable/partly_cloudy_day"/>
<TextView
android:id="@+id/weather_summary"
style="@style/WeatherTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/temperature"
android:gravity="left"
android:maxWidth="380dp"
tools:text="Mostly cloudy until tomorrow evening"/>
<TextView
android:id="@+id/precipitation"
style="@style/WeatherTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/weather_summary"
android:layout_marginTop="@dimen/inter_group_margin"
android:drawableLeft="@drawable/umbrella"
android:drawablePadding="@dimen/icon_margin"
tools:text="6%"/>
<!-- Time and date -->
<TextClock
android:id="@+id/time"
style="@style/TimeStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:format12Hour="h\uee01mm"
android:format24Hour="H\uee01mm"
android:gravity="right"/>
<TextClock
android:id="@+id/day_of_the_week"
style="@style/DateStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/time"
android:format12Hour="EEEE\nMMMM d"
android:format24Hour="EEEE\nd MMMM"
android:gravity="right"/>
<!-- News -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:orientation="vertical">
<TextView
android:id="@+id/news_1"
style="@style/NewsStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginBottom="@dimen/intra_group_margin"
android:drawableLeft="@drawable/news_ap"
android:drawablePadding="@dimen/icon_margin"
tools:text="Obama, Sanders at the White House: Nice chat but that's all"/>
<TextView
android:id="@+id/news_2"
style="@style/NewsStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginBottom="@dimen/intra_group_margin"
android:drawableLeft="@drawable/news_ap"
android:drawablePadding="@dimen/icon_margin"
tools:text="Debate feud injects fresh chaos into GOP primary"/>
<TextView
android:id="@+id/news_3"
style="@style/NewsStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginBottom="@dimen/intra_group_margin"
android:drawableLeft="@drawable/news_ap"
android:drawablePadding="@dimen/icon_margin"
tools:text="Rancher killed in standoff vowed to die before going to jail"/>
<TextView
android:id="@+id/news_4"
style="@style/NewsStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginBottom="@dimen/intra_group_margin"
android:drawableLeft="@drawable/news_ap"
android:drawablePadding="@dimen/icon_margin"
tools:text="Authorities: Last activists should leave wildlife preserve"/>
</LinearLayout>
<!-- Body -->
<net.maxbraun.mirror.BodyView
android:id="@+id/body"
android:layout_width="250dp"
android:layout_height="200dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/intra_group_margin"/>
<WebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/body"
android:layout_alignEnd="@+id/icon" />
</RelativeLayout> |
Partager