我如何为我的 Imageview 添加以下类型的动画
How can i add the following kind of animation for my Imageview
请查找附件中我的视频,其中显示了我的 Imageview 的 animation/design。
我怎样才能添加这样的内容?first you see the normal imageview
after scrolling, the text goes into the foreground and the Image into the Background. How is this possible
如果你想简单地实现这个你可以这样做
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="100dp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@android:color/transparent" />
<!--your layout -->
</LinearLayout>
</ScrollView>
</RelativeLayout>
请查找附件中我的视频,其中显示了我的 Imageview 的 animation/design。 我怎样才能添加这样的内容?first you see the normal imageview
after scrolling, the text goes into the foreground and the Image into the Background. How is this possible
如果你想简单地实现这个你可以这样做
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="100dp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@android:color/transparent" />
<!--your layout -->
</LinearLayout>
</ScrollView>
</RelativeLayout>