Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8171839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:35:21+00:00 2026-06-06T21:35:21+00:00

I have a ScrollView layout like this, for example: <ScrollView> <Component1> <Component2> <Component3> <Component4>

  • 0

I have a ScrollView layout like this, for example:

<ScrollView> 
    <Component1>
    <Component2>
    <Component3>
    <Component4>
    ...
</ScrollView>

Inside ScrollView I have some components, each of them can be anything like LinearLayout, RelativeLayout, TableRow, …
Now what I want is I will scroll the view, when the <Component2> reach the top of the screen, it will be keep on the screen and <Component3>, <Component4>… will keep scrolling till the end of page. When I scroll down, <Component2> will only be scrolled when all the <Component3> has became visible. I saw this on an Iphone app and wondered how to achieve this on Android.

I don’t know if I describe clearly enough but it is same like this video

http://www.youtube.com/watch?v=jXCrM1rzLZY&feature=player_detailpage#t=71s

When the tabs scrolled up to top, it stay there. And when scrolled down like in 1:36 of that video, it stay there until all the content below has became visible on the screen.

Does anybody know how to do this on Android?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:35:23+00:00Added an answer on June 6, 2026 at 9:35 pm

    I guess you could create a hidden copy of Component2 in a RelativeLayout that is setVisible(true) when the coordinates of Component2 are lower(Android draws from the top) than the top of the ScrollView. When the coordinates of Component2 are higher than the top of the ScrollView (.getTop()), Component2Copy.setVisible(false).

    You may also want to disable them when changing their visibility. Good luck with this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For Example, I have a layout like this: <ScrollView> <LinearLayout> <LinearLayout> ... </LinearLayout> <LinearLayout>
I have one main Activity with layout wrapped into ScrollView like this: <ScrollView android:layout_height=wrap_content
I have a layout where I have a ScrollView and some stuffs. It looks
I have an android loyout like this: <ScrollView android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/scrollview> <TextView android:id=@+id/text android:layout_width=wrap_content
I have a ScrollView defined like this: <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/scrollv android:layout_width=wrap_content android:layout_height=wrap_content> <com.test.myview android
Ok so I have a layout which looks something like this: LinearLayout TextView LinearLayout
I have a layout which contains a ScrollView which contains various components including an
One part of my layout is supposed to have two components: A ScrollView on
I have a layout like this: <TableRow android:id=@+id/TabHidden android:layout_width=fill_parent android:layout_height=45dp android:background=@drawable/bg_detail_tab1 android:paddingLeft=5dip android:paddingRight=5dip android:paddingTop=10dip
I have a dialog with this content: <RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content > <ScrollView android:layout_width=fill_parent android:layout_height=wrap_content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.