我是 android 新手,需要有关可以在 android 姜饼和更高版本中工作的 Actionbar 的帮助。做了一些谷歌搜索。需要示例代码,例如带有徽标的左上角选项(设置,sin out)选项。
问问题
2028 次
2 回答
2
想尝试安卓的新东西吗?然后访问这个链接你会得到你的方式。 http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html
谢谢
于 2013-08-21T13:44:40.657 回答
1
这里有一个教程:http ://www.youtube.com/watch?v=4GJ6yY1lNNY
编辑:
而不是使用 ActionBar actionBar = getActionBar(); 在你的活动中。
使用 ActionBar actionBar = getSupportActionBar(); 并用 SherlockActivity 替换活动。
并且不要忘记导入 sherlock:http ://actionbarsherlock.com/usage.html
于 2013-08-21T13:41:02.690 回答