TextInputLayout文本输入控件

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <com.google.android.material.textfield.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <com.google.android.material.textfield.TextInputEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="15343263425"/>
    </com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

这个空间与TEXTVIEW的区别是:可以有一个提示在上面,看吧这个时候有个电话号码在上面

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-04-02 20:04:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-02 20:04:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-02 20:04:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-02 20:04:01       18 阅读

热门阅读

  1. C语言中,`while` 和 `for` 的区别

    2024-04-02 20:04:01       14 阅读
  2. 把本地项目上传到gitee上

    2024-04-02 20:04:01       15 阅读
  3. Debian 配置国内软件源

    2024-04-02 20:04:01       16 阅读
  4. Debian/Ubuntu安装ping和netstat命令

    2024-04-02 20:04:01       16 阅读
  5. 【python】dict转json存入sql

    2024-04-02 20:04:01       16 阅读
  6. 【算法集训】基础算法:双指针

    2024-04-02 20:04:01       17 阅读
  7. 李白打酒加强版(c++实现)

    2024-04-02 20:04:01       13 阅读
  8. 2024-03-27 问AI: 介绍一下深度学习中的 Darknet

    2024-04-02 20:04:01       13 阅读
  9. 33-2 XXE漏洞 - XXE外部实体注入原理

    2024-04-02 20:04:01       14 阅读
  10. 谈谈Python中的列表推导式和字典推导式

    2024-04-02 20:04:01       14 阅读
  11. Vue3创建空对象方法及推荐

    2024-04-02 20:04:01       12 阅读