2017-01-18 12 views
0

AutoCompleteTextのテキストレコードがその高さを超えると、自動的に垂直スクロールバーが表示されますが、テキストの長さがAutoCompleteTextの幅より大きい場合、スクロールバーは表示されません。 AutoCompleteTextの内部に水平スクロールバーを追加するにはどうすればよいですか?アンドロイドのAutocompleteTextViewの中に水平スクロールバーを追加するには?

Main_Layout:

<LinearLayout 
    style="@style/form_item_style_default" 
    android:orientation="horizontal"> 

<AutoCompleteTextView 
    android:id="@+id/refcode_list" 
    android:editable="false" 
    android:dropDownHeight="170dp" 
    android:hint="@string/to_select" 
    android:dropDownWidth="match_parent" 
    android:scrollbars="horizontal|vertical"/> 
</LinearLayout> 

enter image description here

答えて

関連する問題