Is it possible to have a different layout on a home screen widget whenever orientation is changed? For example , when in landscape mode, I wanna show some textViews and ImageViews, but when switched to portrait, I wanna hide those textViews and only show ImageView, and the widget having a different size. Can this be done and how to do it? Thanks in advance.
Asked
Active
Viewed 1,246 times
1

Kkeevv Siena Alejandrino
- 113
- 1
- 3
- 10
-
Is this what you're looking for? http://stackoverflow.com/a/5726776/2045570 – nedaRM Mar 07 '13 at 02:16
-
Yes I searched that but in the xml part, it is on `
`, My homescreen widget uses ` – Kkeevv Siena Alejandrino Mar 07 '13 at 02:24` so its a little bit different. Intellisense doesn't show `android:configChanges=""` on my widget receiver on the manifest. -
1You can have a service that detects the orientation change. Found a good example. Let me know if this helps :) http://stackoverflow.com/a/4979026/2045570 – nedaRM Mar 07 '13 at 02:50