This problem occurs during project creation. There is a page similar to the dialog interface. When you click the text box below to bring up a soft keyboard, you need to move the listview up and slide to the last one, at the beginning, the solution was to listen to textwatcher of edittext. In the beforetextchanged method squadron listview, the solution was as follows:
Handler. postdelayed (New runnable (){
@ Override
Public void run (){
// Todo auto-generated method stub
Chatlistview. setselection (lists. Size ()-1 );
}
},300 );
This processing method is OK in most mobile phones, but in the Chinese Input Method of Samsung mobile phones,Beforetextchanged is not listened to by clicking the keyboard, but by clicking the input text to edittext. There is still a problem.
In fact, it is very easy to solve this problem. You only need to set the attribute of listview to Android: transcriptmode = "normal. Record it here.