菜单的隐藏与现实(旋转)
来源:互联网 发布:freebsd linux 双系统 编辑:程序博客网 时间:2024/05/29 02:44
public static void hider(ViewGroup v) { hider(v,0); } public static void hider(ViewGroup v,int startOffset) {// RotateAnimation ra = new RotateAnimation(0,180,v.getWidth()/2,v.getHeight());// ra.setDuration(4000);// ra.setFillAfter(true);// ra.setStartOffset(startOffset);// v.startAnimation(ra);// for (int i = 0; i<v.getChildCount();i++){// View children = v.getChildAt(i);// children.setEnabled(false);// } ObjectAnimator ani = ObjectAnimator.ofFloat(v,"rotation",0,180); v.setPivotX(v.getWidth()/2); v.setPivotY(v.getHeight()); ani.setDuration(500); ani.setStartDelay(100); ani.start(); } public static void show(ViewGroup v) { show(v,0); } public static void show(ViewGroup v,int startOffset) {// RotateAnimation ra = new RotateAnimation(180,360,v.getWidth()/2,v.getHeight());// ra.setDuration(4000);// ra.setFillAfter(true);// ra.setStartOffset(startOffset);// v.startAnimation(ra);// for (int i = 0; i<v.getChildCount();i++){// View children = v.getChildAt(i);// children.setEnabled(true);// } ObjectAnimator ani = ObjectAnimator.ofFloat(v,"rotation",180,360); v.setPivotX(v.getWidth()/2); v.setPivotY(v.getHeight()); ani.setDuration(500); ani.setStartDelay(100); ani.start(); }
阅读全文
0 0
- 菜单的隐藏与现实(旋转)
- Ext右键菜单的创建与现实
- android隐藏与现实键盘
- 隐藏与现实一个组件
- MFC中实现控件的隐藏与现实的语句
- VS2010/MFC入门编程六(非模态对话框的现实与隐藏以及删除)
- 按钮的现实隐藏特效
- 模块的现实和隐藏
- view的隐藏和现实
- 点击现实与隐藏,点击其它地方隐藏刚显示的元素
- 菜单显示与隐藏
- 旋转菜单(很久以前借鉴的)
- 旋转的导航菜单
- 旋转的导航菜单
- 旋转的导航菜单
- 所想的,与现实。
- android软键盘的现实和隐藏
- Unity 让物体隐藏与现实的属性 其实是是否使用
- 微信 JS API 支付教程
- 扩展系统功能——装饰模式(三)
- CSS3 之 RGBa 可透明颜色
- c# webapi会出现默认路由需设置匹配规则
- 百度地图api中文乱码
- 菜单的隐藏与现实(旋转)
- tomcat 远程调试
- Sublime Text 3 快捷键汇总
- C++:STL标准入门汇总
- 11月14日云栖精选夜读:轻松使用阿里云资源编排,方便你的API管理
- SSH 内网穿透术
- 高通拒绝博通收购要约 吉利后年量产飞行汽车
- org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
- 用最小编辑距离求两个字符串的不同