Implement Material3 based EditTextPreference

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-03-07 18:36:13 +05:30
parent 8f09c7d6ed
commit 9b9cfd8de2
4 changed files with 73 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ fun View.invisible() {
fun View.showKeyboard() {
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
this.requestFocus()
imm.showSoftInput(this, 0)
imm.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT)
}
fun View.hideKeyboard(): Boolean {