Advertisement
Guest User

Untitled

a guest
Apr 14th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. How to get editable changed value from edittext customized list view and stored in array in android
  2. my code
  3. View vi = convertView;
  4.  
  5. vi = inflater.inflate(R.layout.editmainmenulist, null);
  6.  
  7. EditText text = (EditText) vi.findViewById(R.id.editmaimenu);
  8. text.append(itemnames[position]);//here i append so many itemnames append to edittext
  9.  
  10. This method is called to notify you that, within *s*, the *count* characters
  11. beginning at *start* have just replaced old text that had length *before*.
  12.  
  13. mEditText.addTextChangedListener(new TextWatcher() {
  14. public void onTextChanged(CharSequence s, int start, int before,
  15. int count) {
  16. }
  17.  
  18. @Override
  19. public void afterTextChanged(Editable s) {
  20.  
  21. }
  22.  
  23. @Override
  24. public void beforeTextChanged(CharSequence s, int start, int count,
  25. int after) {
  26.  
  27. }
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement