mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-01-28 22:49:47 +01:00
use linearlayouts instead of tablelayout
This commit is contained in:
parent
d37a1963de
commit
aecabbe7e0
@ -21,15 +21,17 @@
|
|||||||
android:text="0"
|
android:text="0"
|
||||||
android:textSize="@dimen/display_text_size"/>
|
android:textSize="@dimen/display_text_size"/>
|
||||||
|
|
||||||
<TableLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_below="@+id/result">
|
android:layout_below="@+id/result"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TableRow
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_modulo"
|
android:id="@+id/btn_modulo"
|
||||||
@ -62,12 +64,13 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="C"/>
|
android:text="C"/>
|
||||||
</TableRow>
|
</LinearLayout>
|
||||||
|
|
||||||
<TableRow
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_7"
|
android:id="@+id/btn_7"
|
||||||
@ -100,12 +103,13 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="÷"/>
|
android:text="÷"/>
|
||||||
</TableRow>
|
</LinearLayout>
|
||||||
|
|
||||||
<TableRow
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_4"
|
android:id="@+id/btn_4"
|
||||||
@ -138,12 +142,13 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"/>
|
android:text="*"/>
|
||||||
</TableRow>
|
</LinearLayout>
|
||||||
|
|
||||||
<TableRow
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_1"
|
android:id="@+id/btn_1"
|
||||||
@ -176,12 +181,13 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="-"/>
|
android:text="-"/>
|
||||||
</TableRow>
|
</LinearLayout>
|
||||||
|
|
||||||
<TableRow
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1">
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btn_0"
|
android:id="@+id/btn_0"
|
||||||
@ -214,6 +220,6 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="+"/>
|
android:text="+"/>
|
||||||
</TableRow>
|
</LinearLayout>
|
||||||
</TableLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user