• TextView(标签控件)


     常用:
           android:text           //显示文本内容
           android:textColor      //文字的颜色
           android:textSize       //文字的大小
           android:textStyle      //字体样式:bold,italic
           android:maxLength      //允许的最大字符数
           android:password       //是否用密文显示:true,false

     方法:
           setText(String);//设置文本内容
           getText().toString();//返回文本内容

     补充属性
           android:layout_width//控件宽度
           android:layout_height//控件高度
           android:id="@+id/id值"//设置控件的唯一标识
           android:background//设置背景

  • 相关阅读:
    572.Subtree of Another Tree
    35.Search Insert Position(二分查找)
    198.House Robber(dp)
    724.Find Pivot Index
    705.Design HashSet
    求连通分量(深搜)
    删边(normal)
    叠放箱子问题
    数字游戏
    火车票
  • 原文地址:https://www.cnblogs.com/banxia123-ha/p/6848769.html
Copyright © 2020-2023  润新知