第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

TextInputLayout 提示消失

TextInputLayout 提示消失

慕田峪4524236 2022-05-12 15:19:55
我使用 TextInputLayout 來包裝 TextInputEditText ,當(dāng)我單擊編輯文本開始輸入提示時,提示消失而不是出現(xiàn)在行上方。<android.support.design.widget.TextInputLayout             android:id="@+id/animaldisc_et"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_marginStart="8dp"             android:layout_marginLeft="8dp"             android:layout_marginTop="16dp"             android:layout_marginEnd="8dp"             android:layout_marginRight="8dp"             app:layout_constraintStart_toStartOf="parent"             app:layout_constraintTop_toBottomOf="@+id/breed_et">             <android.support.design.widget.TextInputEditText                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:ems="10"                 android:hint="Description"                 android:inputType="textPersonName"                 app:layout_constraintEnd_toEndOf="parent"                 app:layout_constraintHorizontal_bias="0.503"                  />         </android.support.design.widget.TextInputLayout>
查看完整描述

1 回答

?
隔江千里

TA貢獻1906條經(jīng)驗 獲得超10個贊

您的代碼很好,提示沒有消失,這可能是由于您的TextInputLayout和背景的顏色組合嘗試使用一些鮮艷的顏色。

http://img1.sycdn.imooc.com//627cb5360001c07507280404.jpg

對其進行了一些修改并將其放入線性布局中。


<LinearLayout

        android:orientation="vertical"

        android:layout_width="match_parent"

        android:layout_height="match_parent">


    <android.support.design.widget.TextInputLayout

        android:layout_gravity="center"


        android:id="@+id/animaldisc_et"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:layout_marginStart="8dp"

        android:layout_marginLeft="8dp"

        android:layout_marginTop="16dp"

        android:layout_marginEnd="8dp"

        android:layout_marginRight="8dp"

        app:layout_constraintStart_toStartOf="parent">

        <android.support.design.widget.TextInputEditText

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:ems="10"

            android:hint="Description"

            android:inputType="textPersonName"

            app:layout_constraintEnd_toEndOf="parent"

            app:layout_constraintHorizontal_bias="0.503"

            />

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



    </LinearLayout>


查看完整回答
反對 回復(fù) 2022-05-12
  • 1 回答
  • 0 關(guān)注
  • 191 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號