Android Question Reset view

panagiotisden2

Active Member
Licensed User
Longtime User
Hello,
I have a view in my app that I need to reset but I can't find a way to do it.
Invalidade won't work because it only redraw the view, it doesn't reset it(removing any text the user entered, any images etc.)
I also can't reload the whole layout because it contains a tabstrip with some list views in each tab that I don't want to be reset too.
Any recommendations?

Thank you
 

KMatle

Expert
Licensed User
Longtime User
Upvote 0

panagiotisden2

Active Member
Licensed User
Longtime User
If you load a layout then it's better to get all the views (f.e. a panel)

- get all views with xxxx.getallviewsxxx (or a for... each...)
- then check what view it is and f.e. set an edittext.text to ""
I can't set the text to nothing or remove it that's why I want to reset/reload the view
 
Upvote 0
Top