摘要: ListView如何优化 复用convertView缓存(减少ListView绘制). 自定义静态类ViewHolder(减少findViewById次数),通过setTag()、getTag()获取holder实例. 使用分页加载. 使用软引用WeakReference引用ImageView对象: 阅读全文
posted @ 2016-09-28 19:18 陨落的星辰 阅读(329) 评论(0) 推荐(0) 编辑
摘要: <form name="form1" method="post" action=""> <input type="button" name="Submit1" value="按钮1" onClick="funSub(1)"> <input type="button" name="Submit2" v 阅读全文
posted @ 2016-09-28 18:04 陨落的星辰 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 正常情况下跑马灯效果只需要在TextView中添加android:ellipsize="marquee" android:singleLine="true" android:focusable="true"属性就可以了,不过这个方法要求指定的TextView必须要获取焦点,而在ListView中这个 阅读全文
posted @ 2016-09-28 15:49 陨落的星辰 阅读(306) 评论(0) 推荐(0) 编辑