Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android动画:在RelativeLayout内围绕轴心点旋转视图_Android_Android Animation - Fatal编程技术网

Android动画:在RelativeLayout内围绕轴心点旋转视图

Android动画:在RelativeLayout内围绕轴心点旋转视图,android,android-animation,Android,Android Animation,在FrameLayout中围绕自定义视图的轴点执行旋转的最佳方式是什么 我特别希望FrameLayout的中心作为旋转的轴心 <FrameLayout android:id="@+id/annulus_frame" android:layout_width="200dp" android:layout_height="200dp" android:background="@color/black" an

在FrameLayout中围绕自定义视图的轴点执行旋转的最佳方式是什么

我特别希望FrameLayout的中心作为旋转的轴心

    <FrameLayout
        android:id="@+id/annulus_frame"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:background="@color/black"
        android:layout_alignTop="@+id/tvRightEye"
        android:layout_centerHorizontal="true">

        <com.mycustomview.AnnulusView
            android:id="@+id/anim_view"
            android:layout_width="fill_parent"
            android:layout_height="200dp" />
    </FrameLayout>