逻辑上可以这样实现:在listview上面添一个层,这个层平时隐藏,当调用getView的时候,将这个层显示出来,然后在里面加一个线程显示动画(可参考:http://blog.csdn.net/aminfo/article/details/7589149),显示完后再隐藏层。
解决方案 »
- 怎样判断edittext是否为空
- 多台android设备能实现socket通信么?
- 写了一个service程序运行一段时间好像就自动关闭了?
- 让listView默认执行第一个item android
- 关于手机拍照调用问题
- android 系统声音+++
- 求高手:Appcan(实际就一个浏览器)开发的APP,点连接变色的效果怎么取消
- android activity service 传值的问题
- bmob 安卓端可以连表查询吗? 感觉限制还是很多,,是自己没玩转吗
- 哪些类型的安卓程序比较容易用来个人练习和模仿又比较典型的?
- android 怎么设置TabHost默认显示的选项卡为选中状态
- android 获取笔迹信息
AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(300);
set.addAnimation(animation); animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
-1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
animation.setDuration(500);
set.addAnimation(animation);
LayoutAnimationController controller = new LayoutAnimationController(
set, 0.5f);
return controller;
}listView.setLayoutAnimation(getListAnim());用这个就可以实现了