问题是,当我试图第二次旋转“刚刚旋转”的图像时,旋转是从原始点开始的,而不是从“第一次旋转后”点开始。 final int rotationRight = 30; final RotateAnimationfinal ImageView image = (ImageView) findViewById(R.id.ImageViewArray)
试着在我的android程序中倾听方向的改变,但是没有任何效果。我的解决方案:将android:configChanges="orientation"添加到AndroidManifest中的活动中,并将其添加到活动类中: public void接下来,我的解决方案是添加:
OrientationEventListener orientationEventListener = new OrientationEventListener(Main