具有可绘制移动提示的TextInputLayout

时间:2017-10-16 14:29:07

标签: android android-layout android-textinputlayout textinputlayout

我将左侧drawable添加到TextInputLayout,现在提示向右移动。它应该在行的开头。

 <android.support.design.widget.TextInputLayout
            android:id="@+id/edit_layout_currency"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/edit_layout_date_of_birth"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            app:errorEnabled="true">

            <android.support.design.widget.TextInputEditText
                android:id="@+id/edit_text_currency"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:enabled="false"
                android:hint="@string/registration_currency"
                android:inputType="text"
                android:maxLength="10"
                android:maxLines="1"
                android:textColor="@color/color_edit_text"
                android:textSize="16sp"/>
        </android.support.design.widget.TextInputLayout>

enter image description here

0 个答案:

没有答案