zoukankan      html  css  js  c++  java
  • EidtText(输入框)

    1.属性
    android:selectAllOnFocus                    在获得焦点时,会全选文本内容
    android:focusable true                        表示获得焦点,false不获得焦点(默认获得焦点)
    android:enabled true                           表示不可编辑,false可以编辑(默认false)
    2.RadioButton                                       (单选按钮)
    3.RadioGroup                                        (单选按钮组)
    android:orientation="horizontal"       设置布局方式
    android:checkedButton="单选按钮id"  设置默认选中的单选按钮
    注意:单选按钮RadioButton,一般需要嵌套在RadioGroup中达到单选的目的。
    方法:getCheckedButtonId(); 获得选中的按钮的id

  • 相关阅读:
    Iterable,Iterator和forEach
    集合的线程安全性
    Servlet生命周期
    JavaWeb应用的生命周期
    将博客搬至CSDN
    (五)新类库的构件
    Python input和print函数
    python----调试
    Excel决定吃什么
    MATLAB—地图
  • 原文地址:https://www.cnblogs.com/shuaiwenxin/p/6853495.html
Copyright © 2011-2022 走看看