Android Navigation Drawer RTL crash -
i'm using appcompact navigation drawer, working following, when try change drawer rtl using android:layout_gravity="start" app compiles on click of icon crashes idea what's causing crash , how make rtl
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="64dp" android:background="@color/color_primary" android:minheight="?attr/actionbarsize" /> <android.support.v4.widget.drawerlayout android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start"> <!-- main layout --> <framelayout android:id="@+id/main_fragment_container" android:layout_width="match_parent" android:layout_height="match_parent" /> <!-- navigation drawer --> <listview android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="end" android:choicemode="singlechoice" android:divider="@android:color/transparent" android:dividerheight="0dp" android:background="#ccc"/> </android.support.v4.widget.drawerlayout> here's error log
process: inducesmile.com.androidnavigationdrawer, pid: 15182 java.lang.illegalargumentexception: no drawer view found gravity left @
Comments
Post a Comment