How to refresh a view in Android
12,759
This is not the right way but I think it should do the job for simple cases:-
Restart your activity without animation.
finish();
startActivity(new Intent(this, MyActivity.class));
overridePendingTransition(0, 0);
Author by
Ken Vors
Updated on June 16, 2022Comments
-
Ken Vors almost 2 years
In my android application, in a view, there are RadioButton view, TextView, Checkbox view, date picker, clock picker and so on.
at the bottom, there are two button. One of them is add and the other one is reset. I want that when the user click to reset, that should naturally refresh the whole view and all values in childview should be set to the default value. How can I achieve that ?
Thank you very much for your help..