Fix text auto resizing in DisplayView
This commit is contained in:
@@ -23,11 +23,7 @@
|
||||
-->
|
||||
|
||||
<org.solovyev.android.calculator.DisplayView
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/calculator_display"
|
||||
android:id="@+id/calculator_display"
|
||||
style="@style/CppText.Display"
|
||||
a:inputType="textMultiLine"
|
||||
a:maxLines="3"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollHorizontally="false"
|
||||
a:scrollbars="none" />
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:padding="@dimen/cpp_display_padding" />
|
@@ -23,11 +23,7 @@
|
||||
-->
|
||||
|
||||
<org.solovyev.android.calculator.DisplayView
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/calculator_display"
|
||||
android:id="@+id/calculator_display"
|
||||
style="@style/CppText.Display"
|
||||
a:inputType="textMultiLine"
|
||||
a:maxLines="3"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollHorizontally="false"
|
||||
a:scrollbars="none" />
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:padding="@dimen/cpp_display_padding" />
|
@@ -6,12 +6,7 @@
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<org.solovyev.android.calculator.DisplayView
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/calculator_display"
|
||||
<org.solovyev.android.calculator.DisplayView a:id="@+id/calculator_display"
|
||||
style="@style/CppText.Display.Onscreen"
|
||||
a:inputType="textMultiLine"
|
||||
a:maxLines="3"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollHorizontally="false"
|
||||
a:scrollbars="none" />
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:padding="@dimen/cpp_display_padding" />
|
@@ -6,12 +6,7 @@
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<org.solovyev.android.calculator.DisplayView
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:id="@+id/calculator_display"
|
||||
<org.solovyev.android.calculator.DisplayView a:id="@+id/calculator_display"
|
||||
style="@style/CppText.Display.Onscreen.Light"
|
||||
a:inputType="textMultiLine"
|
||||
a:maxLines="3"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollHorizontally="false"
|
||||
a:scrollbars="none" />
|
||||
xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:padding="@dimen/cpp_display_padding" />
|
@@ -35,7 +35,7 @@
|
||||
<include
|
||||
layout="@layout/onscreen_display"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="4" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -35,7 +35,7 @@
|
||||
<include
|
||||
layout="@layout/onscreen_display"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="4" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -35,7 +35,7 @@
|
||||
<include
|
||||
layout="@layout/onscreen_display_light"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="4" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -12,5 +12,4 @@
|
||||
style="@style/CppText.Display.Widget"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollbars="vertical"
|
||||
a:singleLine="false"
|
||||
a:textIsSelectable="true" />
|
@@ -12,5 +12,4 @@
|
||||
style="@style/CppText.Display.Widget.Light"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollbars="vertical"
|
||||
a:singleLine="false"
|
||||
a:textIsSelectable="true" />
|
@@ -28,7 +28,7 @@
|
||||
<include
|
||||
layout="@layout/widget_display"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="5" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -43,7 +43,6 @@
|
||||
a:layout_weight="2"
|
||||
a:padding="@dimen/cpp_display_padding"
|
||||
a:scrollbars="vertical"
|
||||
a:singleLine="false"
|
||||
a:textIsSelectable="true"
|
||||
a:textSize="@dimen/cpp_widget_display_text_size_collapsed" />
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<include
|
||||
layout="@layout/widget_display"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="5" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<include
|
||||
layout="@layout/widget_display_light"
|
||||
a:layout_width="0dp"
|
||||
a:layout_height="wrap_content"
|
||||
a:layout_height="match_parent"
|
||||
a:layout_weight="5" />
|
||||
|
||||
</LinearLayout>
|
||||
|
Reference in New Issue
Block a user