菜单的隐藏与现实(旋转)
2017-11-15 14:16
120 查看
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.setPivot a59b X(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(); }
相关文章推荐
- 向下展开菜单 隐藏展开菜单
- 【小松教你手游开发】【系统模块开发】做一个3d旋转菜单
- jq点击显示隐藏二级菜单的几种方法
- [android] 优酷环形菜单-旋转动画
- 鼠标事件---显示隐藏的菜单
- 旋转的导航菜单
- 用html语言写一个隐藏二级菜单的菜单栏
- Android 实现Path2.0中绚丽的的旋转菜单
- Mac Xcode Cocoa Interface Builder 菜单和Dock 隐藏
- easyui的datagrid、treegrid增加表头菜单,用于显示或隐藏列
- jquery 点击页面其他地方实现隐藏菜单功能
- js实现鼠标感应向下滑动隐藏菜单的方法
- sharepont 2013 隐藏Ribbon 菜单
- 用JS+CSS写左侧可隐藏的展开、折叠菜单代码
- ADF11g-035: 隐藏panelCollection工具栏上的自带的按钮或菜单
- JQuery 现实 三级联动菜单
- 点击隐藏汉堡菜单、单页面导航插件—jquery.singlePageNav.min.js、
- XtraGrid屏蔽列菜单和隐藏列
- 微信公众号 隐藏菜单
- Ubuntu 启动项、菜单 改动 防止隐藏