2017-06-14 39 views
1

我已經將支持庫從'com.android.support:design:23.0.0'升級到'com.android.support:design:25.0.0'。現在drawableright(Image)不能用於EditText。這是我的代碼。EditText Drawable當升級設計支持庫時不工作

<android.support.design.widget.TextInputLayout 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content"> 

        <EditText 
         android:layout_width="wrap_content" 
         android:layout_height="match_parent" 
         android:drawableRight="@drawable/ic_calendar"/> 


       </android.support.design.widget.TextInputLayout> 

回答

0

更新您的支持庫

compile 'com.android.support:design:25.3.1' 
+0

K I將檢查... –

+1

由於它的工作。 –

+0

最受歡迎的兄弟 –

1

添加drawableEnd您的EditText這樣

<EditText 
        android:layout_width="wrap_content" 
        android:layout_height="match_parent" 
        android:drawableRight="@drawable/ic_calendar" 
        android:drawableEnd="@drawable/ic_calendar"/> 
+0

如果它有幫助,然後批准我的答案 –

相關問題