zoukankan      html  css  js  c++  java
  • EditText html 出现提示 This text field does not specify an inputType or a hint

     

     
    1 <EditText
    2         android:layout_width="fill_parent"
    3         android:layout_height="wrap_content"
    4         android:minLines="3"
    5         android:id="@+id/message"
    6         />

            这样写的时候突然发现有黄色的叹号出现,提示:"This text field does not specify an inputType or a hint";

            原因是这个编辑框缺少一个属性:hint。

            hint属性作用如下:

            

        修改后代码为:   

    复制代码
    1 <EditText
    2         android:layout_width="fill_parent"
    3         android:layout_height="wrap_content"
    4         android:minLines="3"
    5         android:hint="@null"
    6         android:id="@+id/message"
    7         />
    复制代码

       添加后黄色叹号就消失了。

  • 相关阅读:
    逛画展
    数的划分
    有点难度的树链刨分
    树链刨分
    记502 dp专练
    数论相关
    模拟退火
    仓鼠找sugar
    NOIP 2017 解题报告
    整体二分
  • 原文地址:https://www.cnblogs.com/yelanggu/p/4515855.html
Copyright © 2011-2022 走看看