摘要: 方法一:自定义ListView MainActivity.class 自定义的listview类:MyListView.class xml布局(两种方法调用一个布局) 第二种方法:对listview设置触摸监听 MainActivity.class 阅读全文
posted @ 2016-04-14 17:04 豆豆呢 阅读(187) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml item.xml 如果ListView的Item中包含CheckBox,由于CheckBox的焦点优先 级高于ListView,所以当选中ListView时,ListView将不会有选中的状态,解决的方法就是在checkbox组件中加一属 性:android:fo 阅读全文
posted @ 2016-04-13 11:42 豆豆呢 阅读(410) 评论(0) 推荐(0) 编辑
摘要: MainActivity.class activity_main.xml dot_layout.xml dot_focus.xml dot_nomal.xml 阅读全文
posted @ 2016-04-12 16:19 豆豆呢 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 方法一: MyView.class xml attrs 方法二: MyView.class xml attrs 阅读全文
posted @ 2016-04-11 12:38 豆豆呢 阅读(199) 评论(0) 推荐(0) 编辑
摘要: TouchEvent.class xml 阅读全文
posted @ 2016-04-08 20:47 豆豆呢 阅读(230) 评论(0) 推荐(0) 编辑
摘要: SelfView.class xml 自定义imageview Circle.class xml布局 效果图 阅读全文
posted @ 2016-04-08 20:10 豆豆呢 阅读(299) 评论(0) 推荐(0) 编辑
摘要: //着色 String str = my_info.getTitle();//得到总共的数据title //得到搜索关键字的开始索引 if(name != null){//要改变的字体 int indexOf = str.indexOf(name);//开始长度 if(indexOf != -1){ 阅读全文
posted @ 2016-04-04 21:27 豆豆呢 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 使用radioGroup radiobutton展示导航列表,viewpaer、 fragment 实现页面 ,xlistview展示数据 MainActivity.class MyFargment XListView XListViewHeader XListViewFooter 简写Bean包 阅读全文
posted @ 2016-04-02 12:02 豆豆呢 阅读(517) 评论(0) 推荐(0) 编辑
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
posted @ 2016-03-28 11:34 豆豆呢 阅读(216) 评论(0) 推荐(0) 编辑
摘要: layout布局 MainActivity.java horizontalScrollView viewpager 字体颜色 滑动距离 阅读全文
posted @ 2016-03-26 12:35 豆豆呢 阅读(1424) 评论(0) 推荐(0) 编辑