lance
lance
折叠屏设备分窗口显示时:按照目前的逻辑,一次只能响应一个页面的操作事件;另外一屏会完全无响应。 期望能适配折叠屏分窗口显示
断更了吗?
原因是position这个变量的值引起的,修正也很简单: if(position=0){ ViewHelper.setPivotX(view, 0); ViewHelper.setPivotY(view, view.getMeasuredHeight() \* 0.5f); ViewHelper.setRotationY(view, 90f \* position); }else if(position=-1){ ViewHelper.setPivotX(view, view.getMeasuredWidth()); ViewHelper.setPivotY(view, view.getMeasuredHeight() \* 0.5f); //只在Y轴做旋转操作 ViewHelper.setRotationY(view, 90f \* position); }