android – DrawerLayout和ActionBarDrawerToggle无法解析为某个类型

android – DrawerLayout和ActionBarDrawerToggle无法解析为某个类型,第1张

概述我想在我的应用程序中实现ActionBarSherlock侧面菜单导航抽屉,但总是得到: DrawerLayout cannot be resolved to a type ActionBarDrawerToggle cannot be resolved to a type 我的进口是: import android.content.res.Configuration;import androi 我想在我的应用程序中实现ActionbarSherlock侧面菜单导航抽屉,但总是得到:

DrawerLayout cannot be resolved to a type ActionbarDrawerToggle cannot be resolved to a type

我的进口是:

import androID.content.res.Configuration;import androID.os.Bundle;import androID.support.v4.app.Fragment;import androID.support.v4.app.FragmentTransaction;import androID.vIEw.VIEw;import androID.Widget.AdapterVIEw;import androID.Widget.ListVIEw;import com.actionbarsherlock.app.SherlockFragmentActivity;import com.actionbarsherlock.vIEw.MenuItem;
解决方法 从支持库导入这些
import androID.support.v4.app.ActionbarDrawerToggle;import androID.support.v4.Widget.DrawerLayout;

检查一下

http://developer.android.com/tools/support-library/index.html

有关NaigationDrawer的更多信息

http://developer.android.com/training/implementing-navigation/nav-drawer.html

总结

以上是内存溢出为你收集整理的android – DrawerLayout和ActionBarDrawerToggle无法解析为某个类型全部内容,希望文章能够帮你解决android – DrawerLayout和ActionBarDrawerToggle无法解析为某个类型所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1131158.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存