android sdk<10的情况下,系统才会显示三个点的菜单~~
2012-08-05 01:58
357 查看
国外网站上找的:
For Android 3.0+, an efficient way to access my Preference activity would be by implementing the action bar
The action bar can be added by changing the theme to Theme.Holo, which is available on 3.0+ platforms
Since I have a phone with 2.2 on it, the Holo theme was not being found when I set it up in the manifest file, this was because my build target was 2.2
I initially changed the minSdkVersion to 11 in order for the theme to work, but that meant I wouldn't be able to test it on my phone and no one with a version of Android less than 3.0 would be able to use my app if they wanted to
The actual way to do it is by going into Project>Preferences>Android and setting the build target to the latest version of Android (this way, phones with higher OS versions can benefit from newer theme related changes, while the older versions remain unffected)
One thing to watch out for when setting a higher build target is the compatibility of classes you use. Some classes may only work on the higher versions of Android, and would therefore cause your app to crash on lower versions.
SDK>10的情况下,就不要去想使用三点菜单了!
For Android 3.0+, an efficient way to access my Preference activity would be by implementing the action bar
The action bar can be added by changing the theme to Theme.Holo, which is available on 3.0+ platforms
Since I have a phone with 2.2 on it, the Holo theme was not being found when I set it up in the manifest file, this was because my build target was 2.2
I initially changed the minSdkVersion to 11 in order for the theme to work, but that meant I wouldn't be able to test it on my phone and no one with a version of Android less than 3.0 would be able to use my app if they wanted to
The actual way to do it is by going into Project>Preferences>Android and setting the build target to the latest version of Android (this way, phones with higher OS versions can benefit from newer theme related changes, while the older versions remain unffected)
One thing to watch out for when setting a higher build target is the compatibility of classes you use. Some classes may only work on the higher versions of Android, and would therefore cause your app to crash on lower versions.
SDK>10的情况下,就不要去想使用三点菜单了!
相关文章推荐
- Android-->iostat(显示CPU和IO系统负载情况)
- Android实战简易教程<十一>(树形组件:ExpandableListView显示和动态添加删除)
- Android系统的开机画面显示过程分析(10)
- Android实战简易教程<四十七>(ListView多选-实现点餐系统)
- <Android+Java>Ecplise中Package Explorer显示空白异常及字体更改
- Android OpenGL10 输入响应 <6>
- <Android>使用系统时间命名文件夹
- android SDK问题:<dl-ssl.google.com> != <www.google.com>
- Android 通过按钮弹出系统菜单(通过Button显示菜单)转
- <转>Android研究-Android系统编译、SDK编译、ADT编译、Android开发环境建立
- 支持群聊+语音聊天+高仿QQ源码下载 (android前端+JAVA后台+spark<windows版聊天>)方便集成到自己系统
- Android实战简易教程<五十九>(EventBus小实例-传值、控制其他页控件显示)
- Android中<uses-sdk>属性和target属性分析
- android定位已获取经纬度,上传google解析后textview不显示,基础问题,求大神解答~~>_<`
- Android实战简易教程<四十一>(显示倒计时的Button-适用于获取验证码)
- Android开发问题记录(二)——Eclipse不显示Android SDK&AVD Manager
- android 平台搭建学习01--第一个界面的菜单设置及与其他三个界面的相互跳转(天气预报系统)
- 进入'我的电脑'窗口后,左边显示的‘系统任务,其它位置,详细信息’菜单条到删除和出现的问题解决
- android中使用TextView来显示某个网址的内容,使用<ScrollView>来生成下拉列表框
- struts2中级联菜单标签<s:doubleselect>的若干常见问题(二级菜单不显示,FreeMarker问题)