文本控件

TextView

EditText


按钮控件

Button  

ImageButton 图片按钮
RadioButton单选按钮
CheckBox 复选按钮


图片控件

ImageView


多选
    CheckBox


Android新手总结


使用RadioButton单选按钮时,必须使用RadioGroup

如果没有RadionGroup的话单选按钮的单选效果会失效

    Radiogroup
    RadioButton  监听


Android新手总结

图片调整:scaleType属性

 center 图片距中

centerCrop 常用

fitCenter 图片居中

fitXY  图片拉伸

以上是scaleType的属性




Intent用于跳转页面
以下是创建Intent和跳页面




MainActivity.this.startActivity(intent);
启动Activity才能跳转页面






相关文章:

  • 2021-10-15
  • 2021-07-24
  • 2021-11-27
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-11-13
  • 2021-11-28
  • 2021-11-29
  • 2021-12-05
相关资源
相似解决方案