setHomeAsUpIndicator 报错误
Closed this issue · 6 comments
代码运行时,出现 java.lang.NoSuchMethodException: setHomeAsUpIndicator [class android.graphics.drawable.Drawable] 错误 ,请我这是什么原因啊
Wow!The DrawerLayout requires that element to have a android:layout_gravity set on it, so I should set the gravity at RelativeLayout.
android:layout_gravity="start"
Wow!The DrawerLayout requires that element to have a android:layout_gravity set on it, so I should set the gravity at RelativeLayout.
android:layout_gravity="start"
Wow!The DrawerLayout requires that element to have a android:layout_gravity set on it, so I should set the gravity at RelativeLayout.
android:layout_gravity="start"
Wow!The DrawerLayout requires that element to have a android:layout_gravity set on it, so I should set the gravity at RelativeLayout.
android:layout_gravity="start"
Is your activity inherit the AppcompatActivity or ActionBarActivity?
Those two are not supported now.
Using DrawerToggle from support library is quite basic solution. Sorry about that but this project is deprecated.