4

TextInputLayout の edittext のヒントにパディングを付けたい

ここで、メール アドレスはヒントで、サンプルはテキストです

画像

このソリューションも試しましたが、うまくいきませんでした。

サポート デザイン ライブラリ 23.1.0 を変更した後にこの問題に直面する

ここに私のコードがあります

       <android.support.design.widget.TextInputLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10dp"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp">

            <android.support.v7.widget.AppCompatEditText
                android:id="@+id/edtEmailAddress"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/border_round_edt_grey"
                android:focusableInTouchMode="true"
                android:hint="@string/emailadd"
                android:padding="10dp"
                android:singleLine="true" />
        </android.support.design.widget.TextInputLayout>
4

1 に答える 1