0

The first two items of navigation drawer list items are not properly set in only Nexus S devices. The alignment is working fine all other devices. I dont know why it comes only in this device. Anyone have idea about this.

enter image description here

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="55dp" 
android:background="@drawable/list_selector">

<ImageView
    android:id="@+id/icon"
    android:layout_width="25dp"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_marginLeft="12dp" 
    android:layout_marginRight="12dp"
    android:contentDescription="@string/desc_list_item_icon"
    android:layout_centerVertical="true" /> 



<TextView
    android:id="@+id/title"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_toRightOf="@id/icon"
    android:minHeight="?android:attr/listPreferredItemHeightSmall"
    android:textAppearance="?android:attr/textAppearanceListItemSmall"
    android:textColor="@color/list_item_title"
    android:paddingTop="25dp"
    android:gravity="center"
    android:paddingRight="40dp"/>

  </RelativeLayout>
Nivedha S
  • 207
  • 4
  • 20

0 Answers0