Android 平板电脑应用程序 - ActionBar
我们正在尝试为三星 Galaxy 平板电脑构建 Android 应用程序。有没有办法可以增加ActionBar的高度?我们使用的是 Android 3.1 API 12。
We are trying to build an Android App for Samsung Galaxy Tablets. Is there a way we can increase the height of the ActionBar? We are using Android 3.1 API 12.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将自定义主题应用到您的应用程序。
在 res/values/ 目录中创建 styles.xml 并添加如下内容:
然后在 res/values/ 目录中创建 dimens.xml 并添加如下内容:
然后在应用程序清单中设置应用程序的主题,如下所示:
You can apply a custom theme to your application.
Create styles.xml in your res/values/ directory and add something like this:
Then create dimens.xml in your res/values/ directory and add something like this:
Then in your application manifest set the theme of the application like this:
您将需要创建一个自定义操作栏。
这是一个很好的教程
创建自定义操作栏
这里还有一个来自开发网站的很好的例子。
Android 操作栏
You will need to create a custom Action Bar.
Here is a good tutorial
Creating a custom Action bar
Also here is a good example from the dev site.
Android Action Bar