Fix for wrong layout properties

This commit is contained in:
serso 2015-02-05 17:08:14 +01:00
parent 0c9cb6790c
commit fa5aaf93bd
4 changed files with 72 additions and 65 deletions

View File

@ -28,9 +28,11 @@
a:orientation="vertical">
<LinearLayout
a:layout_weight="1"
a:layout_width="match_parent"
a:layout_height="0dp">
a:layout_height="0dp"
a:layout_weight="1"
a:baselineAligned="false"
a:orientation="horizontal">
<include layout="@layout/cpp_drag_button_vars" />
@ -51,9 +53,11 @@
</LinearLayout>
<LinearLayout
a:layout_weight="1"
a:layout_width="match_parent"
a:layout_height="0dp">
a:layout_height="0dp"
a:layout_weight="1"
a:baselineAligned="false"
a:orientation="horizontal">
<include layout="@layout/cpp_drag_button_functions" />
@ -74,9 +78,11 @@
</LinearLayout>
<LinearLayout
a:layout_weight="1"
a:layout_width="match_parent"
a:layout_height="0dp">
a:layout_height="0dp"
a:layout_weight="1"
a:baselineAligned="false"
a:orientation="horizontal">
<include layout="@layout/cpp_drag_button_operators" />

View File

@ -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"/>

View File

@ -22,42 +22,45 @@
~ Site: http://se.solovyev.org
-->
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
<LinearLayout a:id="@+id/main_layout"
style="?cpp_main_layout_style"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_layout_style">
a:orientation="vertical">
<LinearLayout
a:id="@+id/editorContainer"
a:layout_weight="2"
a:layout_width="match_parent"
a:layout_height="0dp"/>
a:layout_height="0dp"
a:layout_weight="2"
a:orientation="horizontal" />
<LinearLayout
a:layout_weight="1"
a:layout_width="match_parent"
a:layout_height="0dp">
a:layout_height="0dp"
a:layout_weight="1"
a:baselineAligned="false">
<include
layout="@layout/cpp_drag_button_equals"
a:layout_weight="1"
a:layout_width="0dp"
a:layout_height="match_parent"/>
a:layout_height="match_parent"
a:layout_weight="1" />
<FrameLayout
a:id="@+id/displayContainer"
a:layout_weight="4"
a:layout_width="0dp"
a:layout_height="match_parent"/>
a:layout_height="match_parent"
a:layout_weight="4" />
</LinearLayout>
<LinearLayout
a:id="@+id/keyboardContainer"
a:layout_weight="5"
a:layout_width="match_parent"
a:layout_height="0dp"/>
a:layout_height="0dp"
a:layout_weight="5"
a:orientation="vertical" />
</LinearLayout>

View File

@ -50,8 +50,8 @@
</style>
<style name="cpp_keyboard_button_style">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:focusable">true</item>
<item name="android:background">@drawable/metro_button_dark</item>