When android developers to add some edittext in listview inside a edittext after how to enter the content and click a button to get the content
inputI want to listview in a edittext operate; (when I enter the content, the content of each entry keypad returns automatically emptied on a edittext, and can not get the content input)
Members seeking help, grateful
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
1 to EditText plus listener, EditText.addTextChangedListener (new TextWatcher () .......);
2 plus listen to the key, get the value in listening EditText with this EditText.getText (). ToString ()
Reply:
. Use this EditText.getText (). ToString ()
3 and then press the return key to listening edittext.setText (""); blank
Reply:
Just add the listener can not meet, ListView default event is not prepared to pass, so the buttons and text boxes above to accept less than the click event, you have to rewrite want to accept the ListView onInterceptTouchEvent () method and the onTouchEvent () method, the specific landlord own Baidu
---- Android event delivery mechanism
Reply:
The landlord did not solve this problem, I have encountered this problem.
No comments:
Post a Comment