Is this is OK to use the ListView for inline editing?

前端 未结 3 1601
忘掉有多难
忘掉有多难 2020-12-22 02:49

EDIT:

I can\'t write into the EditText, it disappears when i try to write something, its because the getView() is called when i mod

3条回答
  •  佛祖请我去吃肉
    2020-12-22 03:27

    Why not? It would be definitely nice for user, but kind of tricky to develop.

    • Your list entry layout must provide text edit ( maybe invisible ) and switch to it on click on text view. This text view shall have suitale listener keeping track in parent layout etc.
    • you have to save data back as soon as textedit loses focus / about to being reclaimed by list view for reuse in cause fo scrolling.

提交回复
热议问题