Issue
I'm a android intermediate developer and I need someone expirence to do a trick in my content activity;
this is my content Activity:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >
....
// How this TextView never go out of the screen if the user scroll Down
<TextView ... />
....
</ScrollView>
*What I did :
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView ... android:visibility="gone" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >
....
//
<TextView ...android:visibility="visible"/>
....
</ScrollView>
</FrameLayout>
I thought about having 2 TextView, one Invisible in the top and the other visible. When the user scroll down and before the second TextView will be gone I set the first textView visible.
is it a good way ? if so how to do it ?
Solution
Follow this post, which is really good. Note that from there you can do awesome stuff! Here you go :)
Answered By - c-val
Answer Checked By - Robin (JavaFixing Admin)