摘要:
方法一:自定义ListView MainActivity.class 自定义的listview类:MyListView.class xml布局(两种方法调用一个布局) 第二种方法:对listview设置触摸监听 MainActivity.class 阅读全文
摘要:
activity_main.xml item.xml 如果ListView的Item中包含CheckBox,由于CheckBox的焦点优先 级高于ListView,所以当选中ListView时,ListView将不会有选中的状态,解决的方法就是在checkbox组件中加一属 性:android:fo 阅读全文
摘要:
MainActivity.class activity_main.xml dot_layout.xml dot_focus.xml dot_nomal.xml 阅读全文
摘要:
方法一: MyView.class xml attrs 方法二: MyView.class xml attrs 阅读全文
摘要:
//着色 String str = my_info.getTitle();//得到总共的数据title //得到搜索关键字的开始索引 if(name != null){//要改变的字体 int indexOf = str.indexOf(name);//开始长度 if(indexOf != -1){ 阅读全文
摘要:
使用radioGroup radiobutton展示导航列表,viewpaer、 fragment 实现页面 ,xlistview展示数据 MainActivity.class MyFargment XListView XListViewHeader XListViewFooter 简写Bean包 阅读全文
摘要:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_ 阅读全文
摘要:
layout布局 MainActivity.java horizontalScrollView viewpager 字体颜色 滑动距离 阅读全文