Use the CalculatorEditTextField everywhere.
That way, tablet and phone act the same.
Also, Fixes bug:5215768 IRK56: Selected text in Calculator is left-aligned, but selection handles are right-aligned
By giving the user the same "tap and hold to copy" behavior that tablet has
Which also allows them to put the cursor anywhere in the field and replace/delete
Change-Id: I896934c603833dea45cb7e267471c676fa6238f3
diff --git a/res/layout-land/main.xml b/res/layout-land/main.xml
index e3f255f..ac4f8af 100644
--- a/res/layout-land/main.xml
+++ b/res/layout-land/main.xml
@@ -36,8 +36,10 @@
android:layout_height="match_parent"
maxDigits="@integer/max_digits">
- <EditText style="@style/display_style" />
- <EditText style="@style/display_style" />
+ <com.android.calculator2.CalculatorEditText
+ style="@style/display_style" />
+ <com.android.calculator2.CalculatorEditText
+ style="@style/display_style" />
</com.android.calculator2.CalculatorDisplay>
<ImageButton android:id="@+id/overflow_menu"
diff --git a/res/layout-port/main.xml b/res/layout-port/main.xml
index 60ac2d0..59795c1 100644
--- a/res/layout-port/main.xml
+++ b/res/layout-port/main.xml
@@ -39,8 +39,10 @@
android:layout_weight="1"
maxDigits="@integer/max_digits">
- <EditText style="@style/display_style" />
- <EditText style="@style/display_style" />
+ <com.android.calculator2.CalculatorEditText
+ style="@style/display_style" />
+ <com.android.calculator2.CalculatorEditText
+ style="@style/display_style" />
</com.android.calculator2.CalculatorDisplay>
<ImageButton android:id="@+id/overflow_menu"