From 5ecde7fd94bcd3d9b2436836ef59e71412952156 Mon Sep 17 00:00:00 2001 From: Peter Siegmund Date: Mon, 16 Nov 2015 11:05:28 +0100 Subject: [PATCH] new layout wind input xlarge devices (landscape mode) --- .../res/layout/wind_view_xlarge.xml | 289 ++++++++--------- .../res/layout/wind_view_xlarge_old.xml | 302 ++++++++++++++++++ .../res/values-sw720dp-land/dimens.xml | 6 + .../res/values-sw720dp-land/references.xml | 1 + .../ui/fragments/raceinfo/WindFragment.java | 1 + 5 files changed, 445 insertions(+), 154 deletions(-) create mode 100644 mobile/com.sap.sailing.racecommittee.app/res/layout/wind_view_xlarge_old.xml create mode 100644 mobile/com.sap.sailing.racecommittee.app/res/values-sw720dp-land/dimens.xml diff --git a/mobile/com.sap.sailing.racecommittee.app/res/layout/wind_view_xlarge.xml b/mobile/com.sap.sailing.racecommittee.app/res/layout/wind_view_xlarge.xml index 74498089882..71b28ccccd8 100644 --- a/mobile/com.sap.sailing.racecommittee.app/res/layout/wind_view_xlarge.xml +++ b/mobile/com.sap.sailing.racecommittee.app/res/layout/wind_view_xlarge.xml @@ -23,8 +23,7 @@ android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" - android:layout_marginEnd="@dimen/default_margin" - android:layout_marginRight="@dimen/default_margin" + android:layout_marginRight="@dimen/side_padding" android:text="@string/wind_off" android:textAppearance="?textNormal" android:visibility="gone" @@ -35,10 +34,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginEnd="@dimen/default_margin_half" android:layout_marginRight="@dimen/default_margin_half" android:layout_toLeftOf="@id/wind_sensor" - android:layout_toStartOf="@id/wind_sensor" android:src="?wind_off" android:visibility="gone" tools:visibility="visible"/> @@ -48,7 +45,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_marginEnd="@dimen/default_margin_half" android:layout_marginRight="@dimen/default_margin_half" android:layout_toLeftOf="@id/wind_sensor" android:layout_toStartOf="@id/wind_sensor" @@ -63,15 +59,12 @@ android:layout_alignParentStart="true" android:layout_centerVertical="true" android:layout_gravity="center_vertical" - android:layout_marginLeft="@dimen/default_margin" - android:layout_marginStart="@dimen/default_margin" + android:layout_marginLeft="@dimen/side_padding" android:layout_toLeftOf="@id/wind_off" - android:layout_toStartOf="@id/wind_off" android:drawableLeft="?chevron_left_24dp" android:orientation="horizontal" android:text="@string/wind" - android:textAppearance="?textNormal"/> - + android:textAppearance="?textHeader"/> + android:orientation="vertical">