当提示缩小时,如何更改提示的大小?

时间:2019-09-10 18:36:12

标签: xml android-studio kotlin material-design

我正在尝试为我的Android应用程序创建播放器表单。我遇到的问题是,当提示缩小时,您几乎看不到它。我尝试更改文本和TextInputLayout的大小,但是没有运气。

   <com.google.android.material.textfield.TextInputLayout
                android:id="@+id/first_name_text_input_layout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="@dimen/keyline_2"
                android:paddingStart="@dimen/keyline_2"
                android:paddingEnd="@dimen/keyline_2"
                app:errorEnabled="true"
                app:errorTextColor="@color/color_error"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintStart_toEndOf="@id/player_initial_text"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintBottom_toTopOf="@id/last_name_input_text_layout">

   <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/first_name_input_text"
                    android:layout_width="400dp"
                    android:layout_height="wrap_content"
                    android:background="@android:color/white"
                    android:inputType="textNoSuggestions"
                    android:hint="@string/first_name_hint"
                    android:textColorHint="@color/color_hint_grey"
                    android:fontFamily="@font/alternate_got_no1d"
                    android:textSize="30sp"/>
   </com.google.android.material.textfield.TextInputLayout>

enter image description here enter image description here

0 个答案:

没有答案