我为安卓开发。我的 IDE 是 Eclipse。我最近一直在与纺纱厂合作。在做spinner layout的时候,eclipse给我提示了这样一个属性:android:popupPromptView,eclipse内置文档是这样说的:
Reference to a layout to use for displaying a prompt in the
dropdown for spinnerMode="dropdown". [reference]
但是,一旦我使用它,eclipse 就会告诉我以下信息:
Error: No resource found that matches the given name: attr 'android:popupPromptView'.
然后我转到 android 官方文档,spinner 页面,在那里我根本看不到 android:popupPromptView
...这怎么可能?这个属性存在吗?如果是,如何在使用后消除错误?
你可以用简单的方式declera spinner
<Spinner
android:id="@+id/spin_adit_region"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<item name="android:popupPromptView">@android:layout/simple_dropdown_hint</item>
用于旋转器定制
我是一名优秀的程序员,十分优秀!