I have a ListView with an adapter with custom Views. Each of the custom Views has an EditText. When I turn my device horizontally, everything loses focus, and when I try to focus on an EditText View the keyboard shows for a split second and then disappears, and everything loses focus. Why does this happen? How do I fix it?
Asked
Active
Viewed 43 times
1 Answers
1
You can fix it by saving the focused view before rotating the device, and let it become the focused view again when it turns to landscape mode.
Tamás Sengel
- 51,886
- 29
- 155
- 197