Change configuration in list view

I have a list that has the following:

TextView Edit button Delete button and navigation button.

When the user clicks the Edit button, I load the Edit Text, Save and Cancel buttons using the ViewSwitcher. I also used android: windowSoftInputMode = "stateVisible | adjustResize" so that the view will change when the keyboard is visible.

The problem is when the user clicks on the edit text, the keyboard will show up, but the view will reload and the text view will show up.

Also, when the user scrolls down the list view in the middle of the page and changes orientation, the list view is loaded to the top.

I've tried using android: configChange with no result. How to handle this situation with savedInstance Or is there another way to solve this problem?

+3


source to share





All Articles