android - Action Bar padding differences between devices -
i have action bar defined in following manner:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/menu_refresh" android:icon="@drawable/menu_refresh" android:showasaction="always"/> <item android:id="@+id/menu_shelves" android:icon="@drawable/menu_shelves" android:showasaction="always"/> ... more items ... </menu>
this main activity layout:
<com.totalboox.android.views.borderedlinearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="6dp" > <view android:layout_width="match_parent" android:layout_height="?android:attr/actionbarsize" android:background="@color/actionbar_back_color" /> <framelayout android:id="@+id/contentview" android:layout_width="match_parent" android:layout_height="match_parent" /> </com.totalboox.android.views.borderedlinearlayout>
this how displays on samsung tab os 3.2
and how displays on motorola zoom os 4:
as can see, displays correctly on samsung tab, it's on top instead of being in center motorola zoom. there anyway make sure icons centered on both devices?
Comments
Post a Comment