gpt4 book ai didi

与 24.2.1 相比,Android 设计库 25.1.0 TextInputLayout Hint 显示不正确

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:07:12 28 4
gpt4 key购买 nike

<分区>

Android 设计库 #25.1.0 #TextInputLayout 提示与设计库 #24.2.1 相比显示不正确

compile 'com.android.support:design:25.1.0'

enter image description here

compile 'com.android.support:design:24.2.1'

enter image description here

<LinearLayout
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/activity_vertical_margin"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingTop="8dp">

<android.support.design.widget.TextInputLayout
android:id="@+id/login_email_text_input_layout"
android:layout_width="match_parent"
app:hintAnimationEnabled="true"
android:layout_height="wrap_content">

<android.support.v7.widget.AppCompatEditText
android:id="@+id/login_email_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:backgroundTint="@color/colorAccent"
android:drawablePadding="8dp"
android:hint="Email"
android:inputType="textEmailAddress"
android:lines="1"
android:maxLines="1"
android:text="emailaddress@gmail.com" />

</android.support.design.widget.TextInputLayout>

<android.support.design.widget.TextInputLayout
app:hintAnimationEnabled="true"
android:id="@+id/login_password_text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:passwordToggleEnabled="true">

<android.support.v7.widget.AppCompatEditText
android:id="@+id/login_password_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="8dp"
android:hint="Password"
android:imeActionId="@+id/login"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:text="password" />

</android.support.design.widget.TextInputLayout>

<android.support.v7.widget.AppCompatButton
android:id="@+id/login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="8dp"
android:text="Sign In"/>

</LinearLayout>

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com