[英]Resize hide/show password button in Android Studio
As you can see the size is too big and I want to resize it to a smaller size.如您所见,尺寸太大,我想将其调整为较小的尺寸。 Any idea how to do it?
知道怎么做吗?
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/password_field"
android:layout_width="272dp"
android:layout_height="31dp"
android:background="@drawable/email_password_filler"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.504"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.208"
app:passwordToggleEnabled="true"
tools:ignore="Autofill,RtlSymmetry,TextFields">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/email_password_filler"
android:hint="@string/enter_your_password"
android:paddingStart="20sp"
android:paddingTop="10sp"
android:paddingBottom="5sp"
android:textSize="13sp">
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
You can adjust the size by changing these two parameters.您可以通过更改这两个参数来调整大小。
android:layout_width="put value here"
android:layout_height="20dp"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.