2013-11-04 32 views
1

當我嘗試在我的佈局中爲LinearLayout導入樣式時,我始終從Eclipse獲取錯誤警報「找不到與名稱匹配的資源...」。導入style屬性「?attr/spinnerDropDownItemStyle」的方式有問題嗎?等待線索!沒有找到資源導入樣式?attr/spinnerDropDownItemStyle在Android中

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
style="?attr/spinnerDropDownItemStyle" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:orientation="horizontal" > 
</LinearLayout> 

回答

5

你想使用android的spinnerDropDownItemStyle。 以此方式使用..

style="?android:attr/spinnerDropDownItemStyle" 
+0

感謝您的幫助!真的行。 – bryanwu

相關問題