2017-06-13 1 views
-1

誰かが知っているどのようにAutoCompleteTextViewの行のサイズを変更するには? 私は黒い線がより長いエッジになるようにする必要があります。 これは私のXMLコードです:AutoCompleteTextViewの行のサイズを変更するにはどうすればよいですか?

<AutoCompleteTextView 
    android:id="@+id/autoComplete_text" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_margin="16dp" 
    android:hint="     Where you want to Go?" 
    android:layout_centerHorizontal="true" 
    android:textSize="20sp" 
    android:textColorHint="#0b0b0b" 
    android:imeOptions="actionSearch" 
    android:dropDownHeight="25dp" 
    /> 

答えて

1
AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete_country); 
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), R.layout.list_item, R.id.item, COUNTRIES); 
    textView.setAdapter(adapter); 
+0

はあなたに感謝削減しようとします!それは今私に働く。 – ein

2

はマージンを削除し、それがすべての幅

を占有したり

android:layout_margin="16dp" 
+0

ありがとうございます!それは私に今働く:) – ein

関連する問題