This is the structure of my layout xml:
<RelativeView>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<...>
</ScrollView>
<View
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
</RelativeView>
When I want the view to appear, I use View.VISIBLE
in the java file. I do this because I do not want the View to overlap the ScrollView.
Now, I want to animate the the view from View.GONE
to View.VISIBLE
, so that it looks good.
I know that Animations can be done from Alpha 0 to 1.
But is it possible to Animate from View.GONE
to View.VISIBLE
?