Android2.2 不支持setRotation和getRotation方法 android 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 增加判断版本的处理if (VERSION.SDK_INT > 8 ) { 调用setRotation和getRotation方法} 已经解决了。。stackoverflow上找到的方法。if (Build.VERSION.SDK_INT < 11) { RotateAnimation animation = new RotateAnimation(progress, progress,Animation.RELATIVE_TO_SELF, 0.5f,Animation.RELATIVE_TO_SELF,0.5f); animation.setDuration(100); animation.setFillAfter(true); textView.startAnimation(animation); } else { textView.setRotation(progress); }如果想要获取设置的角度的话,自定义一个View。。就OK啦、。。 这是怎么实现的????? jdk1.7的@override蛋疼问题 Android的Tab选项卡中Activity跳转的问题 Android onItemSelected 事件的一点问题 这个函数里面的语句怎么理解? Java 解压缩 APK 并重新局部替换文件后打包 怎么弄啊? 豌豆荚如何显示的视频截图 有个应用想用选项卡做,可不知道怎么编辑第二页选项卡,运行以后三个选项卡都是一样的内容 android的adapter问题 serversocket 如何绑定ipv4端口? 急 e.printStackTrace到底在哪能看到的?
if (VERSION.SDK_INT > 8 ) {
调用setRotation和getRotation方法
}
if (Build.VERSION.SDK_INT < 11) {
RotateAnimation animation = new RotateAnimation(progress, progress,Animation.RELATIVE_TO_SELF, 0.5f,Animation.RELATIVE_TO_SELF,0.5f);
animation.setDuration(100);
animation.setFillAfter(true);
textView.startAnimation(animation);
} else { textView.setRotation(progress);
}如果想要获取设置的角度的话,自定义一个View。。就OK啦、。。