Why Layout Appears Different In Devices?
I am not sure why the views are different but not stable.
Holo - Theme_Holo_NoTitleBar
You must call it before:
setContentView(...);
Or add this to your manifest:
android:theme="@android:style/Theme.Holo.NoActionBar.Fullscreen"
You can remove NoActionBar
, and Fullscreen
, to get different things. Also you can add stuff. If you do it with code, there is autocomplete and you can see all themes and options.
Hope this helps.
Solution 2:
The first one uses the holo theme. The second devices uses the pre holo theme.
Solution 3:
Just use your custom theme, so you can have a "standard" theme across any Android version. http://developer.android.com/guide/topics/ui/themes.html
Post a Comment for "Why Layout Appears Different In Devices?"