[英]How to remove animation from credit card form?
我正在使用https://github.com/dbachelder/CreditCardEntry sdk進行信用卡驗證,但是當我將卡號設置為CreditCardForm時,它會振動並顯示紅色提示文本。 有誰能幫助您刪除此類動畫?
import com.devmarvel.creditcardentry.library.CreditCardForm;
CreditCardForm.setCardNumber("************4242",false);
我的build.gradle是
compile 'com.github.dbachelder:CreditCardEntry:1.4.7'
使用app:animate_on_error將動畫添加或刪除到CreditCardForm中
<com.devmarvel.creditcardentry.library.CreditCardForm
android:id="@+id/form_no_zip"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:card_number_hint="XXXX XXXX XXXX XXXX"
app:include_zip="false"
app:animate_on_error="false"
app:default_text_colors="@color/your_color_here"
app:helper_text_color="@color/your_color_here"
/>
並添加您的主布局xmlns:app="http://schemas.android.com/apk/res-auto"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.