I am trying to make AutoCompleteTextView
look like this image https://ibb.co/ZJxmgK5 but unable to do the same. The outlined box is not visible in the result
Below is my current code. Earlier I tried adding an EditText
in TextInputLayout
but now I want to add Autocomplete in this.
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/input_layout_holiday_destination"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/lbl_destination_big">
<AutoCompleteTextView
android:id="@+id/edittext_holiday_destination"
style="@style/Base.Widget.AppCompat.EditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="10"
android:background="@android:color/transparent"
android:hint="@string/lbl_destination"
android:layout_marginLeft="@dimen/margin8"
android:singleLine="true"
android:lines="1"
android:textSize="25sp"
android:nextFocusDown="@+id/txv_holiday_num_of_nights"
android:imeOptions="actionNext"
android:textCursorDrawable="@drawable/edittext_cursor_drawable"/>
/>
</com.google.android.material.textfield.TextInputLayout>
The expected result is the image for which the URL has been given above.