0

Navigation Drawer Pager Sliding Tab Strip を使用しています。スライダーでメニューを表示しています。ここで、Slider に Profile Photo と User Name を追加したいと思います。私は追加しようとしましLinearLayoutたが、ClassCastExceptionを与えています。

ソース: https://github.com/Balaji-K13/Navigation-drawer-page-sliding-tab-strip

activity.xml :

<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    </RelativeLayout>

    <ListView
        android:id="@+id/left_drawer"
        android:layout_width="240dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:background="@color/lightish"
        android:choiceMode="singleChoice"
        android:divider="@color/blue"
        android:dividerHeight="1dp" />

</android.support.v4.widget.DrawerLayout>
4

1 に答える 1