Browse Source

Fix keyboard size

isundil 7 năm trước cách đây
mục cha
commit
9e757721e4
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 2 1
      app/src/main/res/layout/input.xml
  2. 2 0
      app/src/main/res/values/dimens.xml

+ 2 - 1
app/src/main/res/layout/input.xml

@@ -3,7 +3,8 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:maxHeight="664px"
+    android:minHeight="@dimen/keyboard_min_height"
+    android:maxHeight="@dimen/keyboard_max_height"
     tools:context=".ui.MainActivity"
     android:background="@color/inputBackground">
 

+ 2 - 0
app/src/main/res/values/dimens.xml

@@ -2,4 +2,6 @@
 <resources>
     <dimen name="keyboard_key_height">32dp</dimen>
     <dimen name="big_icon_height">64dp</dimen>
+    <dimen name="keyboard_min_height">375px</dimen>
+    <dimen name="keyboard_max_height">664px</dimen>
 </resources>