私はAndroid開発に不慣れで、ウィジェットへのandroid:prompt
属性を設定できることがわかりました。Spinner
私のようにlayout/my_layout_fragment.xml
:
<Spinner
android:id="@+id/boxFunction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_columnSpan="2"
android:layout_gravity="left"
android:layout_row="14"
android:entries="@array/function_options"
android:gravity="fill_horizontal"
android:prompt="@string/function_prompt" />
プロンプトを明確に示すAndroid2.xエポックのスクリーンショットをいくつか見つけましたが、プロンプトを表示する4.xスクリーンショットを見つけることができませんでした。また、Androidでコンパイルしたアプリでも表示されません。
プロンプトは4.xで非推奨になりましたか(もしそうなら、どこで非推奨の情報を入手できますか)?それとも私は何かを逃しましたか?