Skip to content

Commit 5efd523

Browse files
committed
Fix the input fields to hide the keyboard
1 parent 8ebcf34 commit 5efd523

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

android/app/src/main/res/layout/activity_login.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
<com.google.android.material.textfield.TextInputEditText
5454
android:id="@+id/loginApiKeyTextInput"
5555
android:layout_width="match_parent"
56+
android:imeOptions="actionDone"
57+
android:inputType="text"
5658
android:layout_height="wrap_content"
57-
android:inputType="textMultiLine"
5859
tools:ignore="TextContrastCheck" />
5960

6061
</com.google.android.material.textfield.TextInputLayout>
@@ -64,6 +65,7 @@
6465
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
6566
android:layout_width="match_parent"
6667
android:layout_height="wrap_content"
68+
android:layout_marginTop="-40dp"
6769
android:layout_marginBottom="224dp"
6870
android:hint="@string/login_phone_number_sim1"
6971
app:errorEnabled="true"
@@ -76,8 +78,9 @@
7678
<com.google.android.material.textfield.TextInputEditText
7779
android:id="@+id/loginPhoneNumberInputSIM1"
7880
android:layout_width="match_parent"
81+
android:inputType="text"
7982
android:layout_height="wrap_content"
80-
android:inputType="textMultiLine"
83+
android:imeOptions="actionDone"
8184
tools:ignore="TextContrastCheck" />
8285

8386
</com.google.android.material.textfield.TextInputLayout>
@@ -98,7 +101,8 @@
98101
android:id="@+id/loginPhoneNumberInputSIM2"
99102
android:layout_width="match_parent"
100103
android:layout_height="wrap_content"
101-
android:inputType="textMultiLine"
104+
android:imeOptions="actionDone"
105+
android:inputType="text"
102106
tools:ignore="TextContrastCheck" />
103107

104108
</com.google.android.material.textfield.TextInputLayout>
@@ -123,8 +127,9 @@
123127
<com.google.android.material.textfield.TextInputEditText
124128
android:id="@+id/loginServerUrlInput"
125129
android:layout_width="match_parent"
130+
android:imeOptions="actionDone"
131+
android:inputType="text"
126132
android:layout_height="wrap_content"
127-
android:inputType="textMultiLine"
128133
tools:ignore="TextContrastCheck" />
129134

130135
</com.google.android.material.textfield.TextInputLayout>

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ buildscript {
1717
}
1818

1919
plugins {
20-
id 'com.android.application' version '8.4.0' apply false
21-
id 'com.android.library' version '8.4.0' apply false
20+
id 'com.android.application' version '8.7.2' apply false
21+
id 'com.android.library' version '8.7.2' apply false
2222
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
2323
}
2424

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Jun 23 15:32:32 EEST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)