How to resize AlertDialog on the Keyboard display

前端 未结 6 1929
时光取名叫无心
时光取名叫无心 2020-12-05 00:39

I have a AlertDialog box with approximately 10 controls (text and TextView) on it. These controls are in a ScrollView with Alert

6条回答
  •  清歌不尽
    2020-12-05 00:51

    maybe you don't need to resize Dialog

    add android:imeOptions="actionNext" to EditText(all but last) (it will add "Next" button to the keyboard - go to next EditText)

    and add android:imeOptions="actionDone" to last EditText ("Done" button - hide keyboard)

    now user should be able to click buttons

    if you're creating textboxes in code use EditText#setImeOptions function

    HTH

提交回复
热议问题