简体   繁体   中英

Edit TextView Items in recyclerView

In my project I have a recyclerView that populated with bunch of textView items. I want to implement a feature that is: on long click, textView turns to a editable area that user edit textView to change its value. how can I implement this feature in viewHolder class? thanks in advance

You can use View Switcher . The two children of the ViewSwitcher can be a TextView and an EditText. You can easily switch between the two. You can even customize the transition animation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM