From fa5aaf93bd7577d75b6f1969f76a72e5903440f5 Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 5 Feb 2015 17:08:14 +0100 Subject: [PATCH] Fix for wrong layout properties --- .../main/res/layout-land/cpp_app_keyboard.xml | 78 ++++++++++--------- .../res/layout/cpp_drag_button_equals.xml | 2 - .../src/main/res/layout/main_calculator.xml | 53 +++++++------ android-app/src/main/res/values/styles.xml | 4 +- 4 files changed, 72 insertions(+), 65 deletions(-) diff --git a/android-app/src/main/res/layout-land/cpp_app_keyboard.xml b/android-app/src/main/res/layout-land/cpp_app_keyboard.xml index 0dbc7132..bc434b57 100644 --- a/android-app/src/main/res/layout-land/cpp_app_keyboard.xml +++ b/android-app/src/main/res/layout-land/cpp_app_keyboard.xml @@ -23,76 +23,82 @@ --> + a:layout_width="match_parent" + a:layout_height="match_parent" + a:orientation="vertical"> + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="1" + a:baselineAligned="false" + a:orientation="horizontal"> - + - + - + - + - + - + - + - + + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="1" + a:baselineAligned="false" + a:orientation="horizontal"> - + - + - + - + - + - + - + - + + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="1" + a:baselineAligned="false" + a:orientation="horizontal"> - + - + - + - + - + - + - + - + diff --git a/android-app/src/main/res/layout/cpp_drag_button_equals.xml b/android-app/src/main/res/layout/cpp_drag_button_equals.xml index 0e9ad24e..6e928580 100644 --- a/android-app/src/main/res/layout/cpp_drag_button_equals.xml +++ b/android-app/src/main/res/layout/cpp_drag_button_equals.xml @@ -28,7 +28,5 @@ a:text="=" c:textDown="@string/cpp_plot_button_text" c:directionTextScale="0.5;0.5;0.33;0.5" - a:layout_width="fill_parent" - a:layout_height="fill_parent" style="?cpp_control_button_style" a:onClick="equalsButtonClickHandler"/> \ No newline at end of file diff --git a/android-app/src/main/res/layout/main_calculator.xml b/android-app/src/main/res/layout/main_calculator.xml index 1147ce44..da0698f7 100644 --- a/android-app/src/main/res/layout/main_calculator.xml +++ b/android-app/src/main/res/layout/main_calculator.xml @@ -22,42 +22,45 @@ ~ Site: http://se.solovyev.org --> - + + a:id="@+id/editorContainer" + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="2" + a:orientation="horizontal" /> + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="1" + a:baselineAligned="false"> + layout="@layout/cpp_drag_button_equals" + a:layout_width="0dp" + a:layout_height="match_parent" + a:layout_weight="1" /> + a:id="@+id/displayContainer" + a:layout_width="0dp" + a:layout_height="match_parent" + a:layout_weight="4" /> + a:id="@+id/keyboardContainer" + a:layout_width="match_parent" + a:layout_height="0dp" + a:layout_weight="5" + a:orientation="vertical" /> diff --git a/android-app/src/main/res/values/styles.xml b/android-app/src/main/res/values/styles.xml index 216b16d1..9ac25fc7 100644 --- a/android-app/src/main/res/values/styles.xml +++ b/android-app/src/main/res/values/styles.xml @@ -50,8 +50,8 @@