Google Material Design
Googleが公式に提供しているWeb、Android、IOS、Flutterなど向けのデザインライブラリです.
下線付きGoogleライブラリを使用.この場合は上の
xmlファイルでは、Google公式ドキュメント必要なデザインを参照. このプロジェクトでは、EditTextにマテリアル設計を適用しようとしています.
ソース
応用材料設計
build.gradle(Module)
ファイルに移動します.androidx.appcompat:appcompat
と同じバージョンであること.
<com.google.android.material.textfield.TextInputLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<EditText
android:id="@+id/emailEditText"
android:layout_width="300dp"
android:layout_height="50dp"
android:hint="@string/email" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
app:endIconMode="password_toggle"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<EditText
android:id="@+id/passwordEditText"
android:layout_width="300dp"
android:layout_height="50dp"
android:inputType="textPassword"
android:hint="@string/password" />
</com.google.android.material.textfield.TextInputLayout>

ソース
Reference
この問題について(Google Material Design), 我々は、より多くの情報をここで見つけました https://velog.io/@galaxy/Google-Material-Designテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol