Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android ActionBarSherlock上的白色矩形错误_Android_Actionbarsherlock - Fatal编程技术网

Android ActionBarSherlock上的白色矩形错误

Android ActionBarSherlock上的白色矩形错误,android,actionbarsherlock,Android,Actionbarsherlock,My ActionBarSherlock在android OS设备>=4.0上工作,但此错误发生在较旧的设备上。 我在网上搜索解决方案,但什么也没找到。 有人知道为什么会这样吗?我怎样才能解决这个问题 打印屏幕: @可绘制/可选择的\u背景\u示例 @style/PopupMenu.Example @style/DropDownListView.Example @style/ActionBartaStyle.Example @style/DropDownNav.Example @style/

My ActionBarSherlock在android OS设备>=4.0上工作,但此错误发生在较旧的设备上。 我在网上搜索解决方案,但什么也没找到。 有人知道为什么会这样吗?我怎样才能解决这个问题

打印屏幕:


@可绘制/可选择的\u背景\u示例
@style/PopupMenu.Example
@style/DropDownListView.Example
@style/ActionBartaStyle.Example
@style/DropDownNav.Example
@style/ActionBar.Solid.Example
@可绘图/驾驶室\背景\顶部\示例
@可绘制/驾驶室\背景\底部\示例
@style/ActionButton.CloseMode.Example
@可绘制/ab_实体_示例
@可绘制/ab_堆叠_实体_示例
@可绘制/ab_底部_实体_示例
@style/ProgressBar.Example
@可绘制/ab_透明_示例
@style/ProgressBar.Example
@可绘图/菜单\下拉菜单\面板\示例
@可绘制/可选择的\u背景\u示例
@可绘制/选项卡指示器选项卡示例
@可绘制/微调器\u背景\u ab\u示例
@可绘图/菜单\下拉菜单\面板\示例
@可绘制/可选择的\u背景\u示例
@可绘制/进度\水平\示例
@可牵引/btn\u驾驶室\u完成\u示例
@style/PopupMenu.Example
@style/DropDownListView.Example

我想您在旧版本的主题/样式中忘记了一些背景样式变量。我添加了主题代码nowResolved实现ActionBarCompat
    <!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>

<!-- Action Bar Theme -->
<style name="Theme.Test" parent="@style/Theme.Sherlock">
    <item name="actionBarItemBackground">@drawable/selectable_background_example</item>
    <item name="popupMenuStyle">@style/PopupMenu.Example</item>
    <item name="dropDownListViewStyle">@style/DropDownListView.Example</item>
    <item name="actionBarTabStyle">@style/ActionBarTabStyle.Example</item>
    <item name="actionDropDownStyle">@style/DropDownNav.Example</item>
    <item name="actionBarStyle">@style/ActionBar.Solid.Example</item>
    <item name="actionModeBackground">@drawable/cab_background_top_example</item>
    <item name="actionModeSplitBackground">@drawable/cab_background_bottom_example</item>
    <item name="actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Example</item>


</style>

<style name="ActionBar.Solid.Example" parent="@style/Widget.Sherlock.ActionBar.Solid">
    <item name="background">@drawable/ab_solid_example</item>
    <item name="backgroundStacked">@drawable/ab_stacked_solid_example</item>
    <item name="backgroundSplit">@drawable/ab_bottom_solid_example</item>
    <item name="progressBarStyle">@style/ProgressBar.Example</item>
</style>

<style name="ActionBar.Transparent.Example" parent="@style/Widget.Sherlock.ActionBar">
    <item name="background">@drawable/ab_transparent_example</item>
    <item name="progressBarStyle">@style/ProgressBar.Example</item>
</style>

<style name="PopupMenu.Example" parent="@style/Widget.Sherlock.ListPopupWindow">    
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_example</item>   
</style>

<style name="DropDownListView.Example" parent="@style/Widget.Sherlock.ListView.DropDown">
    <item name="android:listSelector">@drawable/selectable_background_example</item>
</style>

<style name="ActionBarTabStyle.Example" parent="@style/Widget.Sherlock.ActionBar.TabView">
    <item name="android:background">@drawable/tab_indicator_ab_example</item>
</style>

<style name="DropDownNav.Example" parent="@style/Widget.Sherlock.Spinner.DropDown.ActionBar">
    <item name="android:background">@drawable/spinner_background_ab_example</item>
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_example</item>
    <item name="android:dropDownSelector">@drawable/selectable_background_example</item>
</style>

<style name="ProgressBar.Example" parent="@style/Widget.Sherlock.ProgressBar.Horizontal">
    <item name="android:progressDrawable">@drawable/progress_horizontal_example</item>
</style>

<style name="ActionButton.CloseMode.Example" parent="@style/Widget.Sherlock.ActionButton.CloseMode">
    <item name="android:background">@drawable/btn_cab_done_example</item>
</style>

<!-- this style is only referenced in a Light.DarkActionBar based theme -->
<style name="Theme.Example.Widget" parent="@style/Theme.Sherlock">
    <item name="popupMenuStyle">@style/PopupMenu.Example</item>
    <item name="dropDownListViewStyle">@style/DropDownListView.Example</item>
</style>