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

enter image description here

and how displays on motorola zoom os 4:

enter image description here

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -