Web サイトに長いコンテンツを含むドロップダウン リストがあります。ドロップダウン リストを選択したときのデフォルトの動作では、画面にポップアウトします。私の問題は、ドロップダウン リストから項目を選択するために Android フォンでそれを表示すると、一部のコンテンツが非表示になることです (たとえば、6 語の長さのドロップダウン リスト項目の 3 語のみが表示されます)。
これに対する回避策はありますか?
Web サイトに長いコンテンツを含むドロップダウン リストがあります。ドロップダウン リストを選択したときのデフォルトの動作では、画面にポップアウトします。私の問題は、ドロップダウン リストから項目を選択するために Android フォンでそれを表示すると、一部のコンテンツが非表示になることです (たとえば、6 語の長さのドロップダウン リスト項目の 3 語のみが表示されます)。
これに対する回避策はありますか?
u can use LinearLayout layout .
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">MyAndroidApp</string>
<string name="country_prompt">Choose a country</string>
<string-array name="country_arrays">
<item>Malaysia</item>
<item>United States</item>
<item>Indonesia</item>
<item>France</item>
<item>Italy</item>
<item>Singapore</item>
<item>New Zealand</item>
<item>India</item>
</string-array>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/country_arrays"
android:prompt="@string/country_prompt" />
<Spinner
android:id="@+id/spinner2"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btnSubmit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit" />
</LinearLayout>