Android导航抽屉错误ActionBarDrawerToggle不是Woking

时间:2015-09-30 15:18:44

标签: android android-navigation-drawer

What's the Problem With this line? I am not able to fix the error

这条线的问题是什么?我无法解决错误

1 个答案:

答案 0 :(得分:0)

因为你导入了support.V7 ActionBarDrawerToggle检查下面你会得到一个想法

android.support.v4.app.ActionBarDrawerToggle toggle2 = new android.support.v4.app.ActionBarDrawerToggle( this, drawer, R.drawable.download, R.string.navigation_drawer_open, R.string.navigation_drawer_close);

但不推荐使用此功能 有关详情,请查看https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html