基本控件-按钮控件及自定义复合控件.pptxVIP

  • 2
  • 0
  • 约小于1千字
  • 约 13页
  • 2017-06-06 发布于湖北
  • 举报

基本控件-按钮控件及自定义复合控件.pptx

按钮类控件 Button ImageButton ToggleButton CheckBox RadioButton RadiouGroup 自定义复合控件 基本按钮 选择按钮 练习 获取单选按钮及复选按钮的值 日期时间控件 日期时间控件 其他基本控件 其他基本控件 其他基本控件 自定义控件-案例 自定义一个复合控件,由一个文本编辑框和用来清除其内容的按钮所组成。 LayoutInflater和inflate()方法的用法 LayoutInflater作用是将layout的xml布局文件实例化为View类对象。 (1).通过SystemService获得     LayoutInflater inflater = (LayoutInflater)context.getSystemServices(Context.LAYOUT_INFLATER_SERVICES);     View view = inflater.inflate(R.layout.main, null); (2).从给定的context中获得     LayoutInflater inflater = LayoutInflater.from(context);     View view = inflater.inflate(R.layout.mian, null); (3).     LayoutI

文档评论(0)

1亿VIP精品文档

相关文档