Tôi đang xây dựng một ứng dụng có một số AutoCompleteTextView
, sử dụng thiết kế amterial AppCompat
. Tôi cần phải loại bỏ các hình ảnh động gợi ý mà thành phần này có, khi bạn gõ vào lĩnh vực này và gợi ý đi lên, trong một hình ảnh động trơn tru. Có cách nào để xóa hoạt ảnh này không?Thiết kế material design Android: xóa hoạt ảnh gợi ý
bố trí của tôi:
<!-- Login progress -->
<ProgressBar android:id="@+id/login_progress" style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp" android:visibility="gone" />
<LinearLayout android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:id="@+id/email_login_form" android:layout_width="match_parent"
android:layout_height="match_parent" android:orientation="vertical">
<android.support.design.widget.TextInputLayout android:layout_width="match_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView android:id="@+id/email" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_email"
android:inputType="textEmailAddress"
android:maxLines="1"
android:singleLine="true"
android:theme="@style/AutoCompleteTextViewListasVipHolo" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText android:id="@+id/password" android:layout_width="match_parent"
android:layout_height="wrap_content" android:hint="@string/prompt_password"
android:imeActionId="@+id/login"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified" android:inputType="textPassword"
android:maxLines="1" android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
<Button android:id="@+id/email_sign_in_button"
style="?android:textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/action_sign_in"
android:textStyle="bold" />
<Button android:id="@+id/register_button"
style="?android:textAppearanceSmall"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/action_register"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
tôi không muốn mất tính năng tự động hoàn tất.
Đăng bố cục của bạn ít nhất. Nó sẽ dễ dàng hơn nhiều để giúp bạn –
@erickles Đăng xml đầy đủ của bạn –