diff options
Diffstat (limited to 'res/layout/forecast_activity.xml')
-rw-r--r-- | res/layout/forecast_activity.xml | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/res/layout/forecast_activity.xml b/res/layout/forecast_activity.xml index 1ac7635..fe71b1c 100644 --- a/res/layout/forecast_activity.xml +++ b/res/layout/forecast_activity.xml @@ -31,9 +31,10 @@ android:gravity="center_vertical" android:orientation="vertical" > - <RelativeLayout + <LinearLayout android:layout_width="match_parent" android:layout_height="48dp" + android:weightSum="1" android:gravity="center_horizontal"> <TextView @@ -42,6 +43,9 @@ android:layout_height="match_parent" android:gravity="center|center_horizontal" android:singleLine="true" + android:ellipsize="end" + android:layout_weight="0.8" + android:paddingLeft="3dp" android:textAppearance="?android:attr/textAppearanceMedium" /> <ImageView @@ -52,8 +56,9 @@ android:layout_centerVertical="true" android:padding="8dp" android:src="@drawable/ic_menu_refresh" + android:layout_weight="0.2" android:background="?android:attr/selectableItemBackground" /> - </RelativeLayout> + </LinearLayout> <ImageView android:layout_width="match_parent" @@ -123,19 +128,29 @@ android:layout_centerHorizontal="true" android:textAppearance="?android:attr/textAppearanceLarge" /> + <TextView + android:id="@+id/weather_low_high" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/weather_temp" + android:layout_centerHorizontal="true" + android:paddingBottom="2dip" + android:textSize="12sp" + android:textColor="?android:attr/textColorPrimary" /> + <ImageView android:id="@+id/weather_divider" - android:layout_below="@id/weather_temp" + android:layout_below="@id/weather_low_high" android:layout_width="44dip" android:layout_height="1dip" android:layout_centerHorizontal="true" android:background="@android:drawable/divider_horizontal_dark" /> <TextView - android:id="@+id/weather_low_high" + android:id="@+id/weather_hum_wind" + android:layout_below="@id/weather_divider" 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" @@ -155,14 +170,28 @@ </RelativeLayout> <LinearLayout - android:id="@+id/forecast_view" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="12dip" - android:layout_marginRight="12dip" - android:paddingBottom="16dp" + android:layout_marginEnd="12dip" + android:layout_marginStart="12dip" android:gravity="center_horizontal" - android:orientation="horizontal" /> + android:layout_marginBottom="8dp" + android:layout_marginTop="8dp"> + + <HorizontalScrollView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fadingEdgeLength="12dp" + android:requiresFadingEdge="horizontal" + android:scrollbars="none"> + + <LinearLayout + android:id="@+id/forecast_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + </HorizontalScrollView> + </LinearLayout> <ProgressBar android:id="@+id/progress_indicator" |