This is limitation of the Animation in Android. They fixed that in Android 3.0. Read here for more information http://android-developers.blogspot.com/2011/02/animation-in-honeycomb.html


An excerpt:

"Finally, the previous animations changed the visual appearance of the target objects... but they didn't actually change the objects themselves. You may have run into this problem. Let's say you want to move a Button from one side of the screen to the other. You can use a TranslateAnimation to do so, and the button will happily glide along to the other side of the screen. And when the animation is done, it will gladly snap back into its original location. So you find the setFillAfter(true) method on Animation and try it again. This time the button stays in place at the location to which it was animated. And you can verify that by clicking on it - Hey! How come the button isn't clicking? The problem is that the animation changes where the button is drawn, but not where the button physically exists within the container. If you want to click on the button, you'll have to click the location that it used to live in. Or, as a more effective solution (and one just a tad more useful to your users), you'll have to write your code to actually change the location of the button in the layout when the animation finishes."


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 为什么在JavaScript中[5,6,8,7][1,2]= 8
  2. 【第2篇】TypeScript - 基本类型详解
  3. RxJs分组热观测值的笛卡尔积
  4. 取消/中止angularJs中的所有待处理请求
  5. 如何根据最新到最旧的id值对Json进行排序
  6. CSS3(jQUery?)当它悬停时隐藏元素“a”,这样
  7. LeetCode14.最长公共前缀 JavaScript
  8. ECMAScript6(6):数组的扩展
  9. 运行一次后停止执行函数
  10. 如何在角度js中每5秒重新加载网格?