Android 以布局为背景的自定义操作栏
我有一个要求,我需要显示与主页按钮图标在左侧的酒吧和活动标题在酒吧与应用程序的标志中间的行动栏 所以我设计了一个符合这些要求的布局 我想将此布局设置为我的元素,以便将其设置为主题 但我无法将布局添加到元素中 下面是代码Android 以布局为背景的自定义操作栏,android,Android,我有一个要求,我需要显示与主页按钮图标在左侧的酒吧和活动标题在酒吧与应用程序的标志中间的行动栏 所以我设计了一个符合这些要求的布局 我想将此布局设置为我的元素,以便将其设置为主题 但我无法将布局添加到元素中 下面是代码 <style name="Theme.MySherlockCustom" parent="@style/Theme.Sherlock.Light"> <item name="actionBarSize">100dp</item>
<style name="Theme.MySherlockCustom" parent="@style/Theme.Sherlock.Light">
<item name="actionBarSize">100dp</item>
<item name="android:windowNoTitle">true</item>
<item name="android:textSize">11sp</item>
</style>
请帮助我完成我的目标。好像你在使用Actibar Sherlock库。你检查过它的演示应用程序吗???是的。
Try this code...
<style name="Theme.Main" parent="android:Theme.Holo">
<item name="android:actionBarStyle">@style/Widget.ActionBar</item>
</style>
<style name="Widget.ActionBar" parent="android:Widget.Holo.Light.ActionBar">
<item name="android:customNavigationLayout">@layout/YOUR LAYOUT</item>
</style>