Я использую следующий код, чтобы повернуть изображение на весь экранПоворот изображения Просмотр в андроида непрерывно
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:duration="500"
android:repeatCount="infinite"
android:pivotX="50%"
android:pivotY="50%"
>
</rotate>
</set>
Анимация rotate1 = AnimationUtils.loadAnimation (это, R.anim.rotate_picture); rotate.startAnimation (rotate1);
Макета, который я использую это
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/loader"
android:layout_centerInParent="true"
android:id="@+id/rotate"
/>
</RelativeLayout>
Но остановить 500мс и перезапустить again.But мне нужно повернуть изображение continuously.Without остановить его в middle.How я могу это сделать.
Как выглядит ваш макет? – TryTryAgain
Вы когда-нибудь находили решение? – Zapnologica