Eclipse kullanıyorum. öğe içinAndroid Öğe için üst öğe alınırken hata oluştu: Verilen adla eşleşen kaynak bulunamadı
alınırken hata ebeveyn: benim özel style.xml bu hatayı alıyorum Hiçbir kaynak bulduğunu maçları verilen ad 'android: tarzı/ Widget.Holo.Light.Spinner.DropDown.ActionBar' . Manifest yılında
:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
Ben de project.properties dosya target = android-17 (Android 4.2.2) sahip olduğundan emin yaptı ve ben sadece temizlenmiş ve projemi inşa ancak hata devam için ebeveyn alınırken
Benim özel style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.AndroidDevelopers" parent="android:style/Theme.Holo.Light">
<item name="android:selectableItemBackground">@drawable/ad_selectable_background</item>
<item name="android:popupMenuStyle">@style/MyPopupMenu</item>
<item name="android:dropDownListViewStyle">@style/MyDropDownListView</item>
<item name="android:actionBarTabStyle">@style/MyActionBarTabStyle</item>
<item name="android:actionDropDownStyle">@style/MyDropDownNav</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/ad_btn_check_holo_light</item>
<item name="android:listChoiceIndicatorSingle">@drawable/ad_btn_radio_holo_light</item>
</style>
<!-- style the list navigation -->
<style name="MyDropDownNav" parent="android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar">
<item name="android:background">@color/vermelho</item>
<item name="android:popupBackground">@color/orange</item>
<item name="android:dropDownSelector">@drawable/seletor2</item>
</style>
<!-- style for the tabs -->
<style name="MyActionBarTabStyle" parent="android:style/Widget.Holo.Light.ActionBarView_TabView">
<item name="android:background">@drawable/actionbar_tab_bg</item>
<item name="android:paddingLeft">32dp</item>
<item name="android:paddingRight">32dp</item>
</style>
<!-- style the overflow menu -->
<style name="MyPopupMenu" parent="android:style/Widget.Holo.Light.ListPopupWindow">
<item name="android:popupBackground">@drawable/ad_menu_dropdown_panel_holo_light</item>
</style>
<!-- style the items within the overflow menu -->
<style name="MyDropDownListView" parent="android:style/Widget.Holo.ListView.DropDown">
<item name="android:listSelector">@drawable/seletor2</item>
</style>
<style name="MyActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@drawable/actionbarbackground</item>
</style>
</resources>
Evet, işe yaradı kullanmak
parent="android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar"
olarak bir kaynak yok! Ama hiçbir şey değişmedi. Liste gezinme modunda varsayılan stil ile devam ediyor mavi renk şeması var –
üzerinde özelleştirmek gerekir –
Ben biliyorum, Şimdi öğe için ebeveyn alınırken başka bir hata: Verilen isim 'android ile eşleşen kaynak bulunamadı: stil/Widget .Holo.Light.ActionBarView_TabView'. –