Android 4.2 Material TextInputLayout提示未在rtl模式下显示

问题描述 投票:0回答:1

切换RTL模式时,Material TextInputLayout中的浮动提示未显示,当语言环境为ltr时,一切正常:LTR MODE, FLOATING HINT IS WORKING

但是在rtl中消失了:RTL MODE AND NO HINT

android material-design
1个回答
0
投票

这是我的XML的一部分:

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/code_text_input"
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="start"
            android:layout_marginBottom="8dp"
            app:hintEnabled="true"
            app:layout_constraintTop_toTopOf="@+id/login">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/code_edit_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/activate_code"
                android:inputType="number"
                android:textSize="@dimen/large_text" />

        </com.google.android.material.textfield.TextInputLayout>
© www.soinside.com 2019 - 2024. All rights reserved.