Make the length of the delete, clear keys dependent on the text.
Min width matches the other buttons in that col
but max width could be huge
fixes b/5492494 all_source_broad_Android:all_source_project_205189_Android - Android - LQA - MR0 ICS (41 Languages):BG_Calculator_Truncated
Change-Id: Ia9059f9521fbd2293806789f4ec1b745f033e190
diff --git a/res/layout-port/main.xml b/res/layout-port/main.xml
index e0746d5..f624d01 100644
--- a/res/layout-port/main.xml
+++ b/res/layout-port/main.xml
@@ -63,12 +63,11 @@
android:background="@drawable/btn_function"
android:layout_width="0dp"
android:layout_height="match_parent"
- android:layout_weight="3"
+ android:layout_weight="1"
/>
<FrameLayout
- android:layout_width="0dp"
- android:layout_weight="1"
+ android:layout_width="wrap_content"
android:layout_height="match_parent">
<!-- marginRight has to be 0 to catch border-touch -->
<com.android.calculator2.ColorButton
@@ -79,6 +78,7 @@
android:layout_marginRight="0dp"
android:textSize="15dp"
style="@style/button_style"
+ android:minWidth="100dip"
/>
<!-- marginRight has to be 0 to catch border-touch -->
<com.android.calculator2.ColorButton
@@ -90,6 +90,8 @@
android:textSize="15dp"
style="@style/button_style"
android:contentDescription="@string/delDesc"
+ android:ellipsize="end"
+ android:minWidth="89dip"
/>
</FrameLayout>