上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
  2016年5月5日
摘要: 一.图片视图 1.关键词:ImageView; 2.src 图片来源 3.alpha 透明度 1>.设置值为 0~1; 2>.<=0,全透明 3>.>=1,不透明 二.scaleType 显示类型 1.center 以原图的几何中心点和ImagView的几何中心点为基准,按图片的原来size居中显示 阅读全文
posted @ 2016-05-05 11:38 安然罒 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 一.事件 1.概念 1>事件源 事件发起者,也就是视图组件。 2>事件 事件源产生的动作,并包含相关信息。 3>监听器 是一些关于事件处理的接口,负责拦截和处理事件信息,要实现相关的接口,把处理事件的业务逻辑写在回调方法里,要把监听器的实现类的实例和事件源进行关联。 4>回调方法 负责处理事件,由监 阅读全文
posted @ 2016-05-05 10:45 安然罒 阅读(263) 评论(0) 推荐(0) 编辑
  2016年5月3日
摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.androi 阅读全文
posted @ 2016-05-03 17:00 安然罒 阅读(384) 评论(0) 推荐(0) 编辑
  2016年4月29日
摘要: 一.概念 二.创建过程 三.回调方法 四.常用方法 五.生命周期 1.四种状态 2.7种回调方法 六.保存和恢复状态 1.回调方法 1>保存状态 onSaveInstanceState(Bundle outState) 在暂停和停止之间调用; 主动关闭Activity时不会调用; 使用Bundle对 阅读全文
posted @ 2016-04-29 09:00 安然罒 阅读(337) 评论(0) 推荐(0) 编辑
  2016年4月27日
摘要: 一.组成 二.布局管理器 1.线性布局 LinearLayout 2.帧布局 FrameLayout 后面的组件会覆盖前面的组件。 3.表格布局 TableLayout 4.相对布局 RelativeLayout 5.网格布局 GridLayout 三.组件的公共属性 1.外部尺寸 2.边距 3.对 阅读全文
posted @ 2016-04-27 10:30 安然罒 阅读(139) 评论(0) 推荐(0) 编辑
  2016年4月22日
摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent 阅读全文
posted @ 2016-04-22 00:47 安然罒 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent 阅读全文
posted @ 2016-04-22 00:46 安然罒 阅读(147) 评论(0) 推荐(0) 编辑
  2016年4月19日
摘要: 阅读全文
posted @ 2016-04-19 22:48 安然罒 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-19 22:46 安然罒 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 <?xml version="1.0" encoding="utf-8"?> 2 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_paren 阅读全文
posted @ 2016-04-19 22:39 安然罒 阅读(632) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页