Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Fix the input fields to hide the keyboard

Acho Arnold5efd523e9263
diff --git a/android/app/src/main/res/layout/activity_login.xml b/android/app/src/main/res/layout/activity_login.xml
index cc4d4eb1..cfd86db6 100644
--- a/android/app/src/main/res/layout/activity_login.xml
+++ b/android/app/src/main/res/layout/activity_login.xml
@@ -53,8 +53,9 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/loginApiKeyTextInput"
android:layout_width="match_parent"
+ android:imeOptions="actionDone"
+ android:inputType="text"
android:layout_height="wrap_content"
- android:inputType="textMultiLine"
tools:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
@@ -64,6 +65,7 @@
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginTop="-40dp"
android:layout_marginBottom="224dp"
android:hint="@string/login_phone_number_sim1"
app:errorEnabled="true"
@@ -76,8 +78,9 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/loginPhoneNumberInputSIM1"
android:layout_width="match_parent"
+ android:inputType="text"
android:layout_height="wrap_content"
- android:inputType="textMultiLine"
+ android:imeOptions="actionDone"
tools:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
@@ -98,7 +101,8 @@
android:id="@+id/loginPhoneNumberInputSIM2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:inputType="textMultiLine"
+ android:imeOptions="actionDone"
+ android:inputType="text"
tools:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
@@ -123,8 +127,9 @@
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/loginServerUrlInput"
android:layout_width="match_parent"
+ android:imeOptions="actionDone"
+ android:inputType="text"
android:layout_height="wrap_content"
- android:inputType="textMultiLine"
tools:ignore="TextContrastCheck" />
</com.google.android.material.textfield.TextInputLayout>
diff --git a/android/build.gradle b/android/build.gradle
index dd21f662..f5c69b9c 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -17,8 +17,8 @@ buildscript {
}
plugins {
- id 'com.android.application' version '8.4.0' apply false
- id 'com.android.library' version '8.4.0' apply false
+ id 'com.android.application' version '8.7.2' apply false
+ id 'com.android.library' version '8.7.2' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
}
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 733a5339..c9d1c8d8 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Thu Jun 23 15:32:32 EEST 2022
distributionBase=GRADLE_USER_HOME
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME