1

Scenario

I have a ScrollView inside which there are 3 textview and a listview is there .

Actual

My ScrollView is not working because all content fit in a page, this is because of the listview itself got a scrollbar.

Expectation

I want the listview scrolling to be disabled so that my main scroll should work which means i could scroll the 3 textview along with the items in the listview.

1
  • 1
    Would putting the 3 TextViews as a header, or first view in the ListView accomplish what you need? Commented Feb 4, 2015 at 15:02

1 Answer 1

0

Try to set in XML, this will disable inside scroll of your ListView and you would have opportunity to scroll your parent ScrollView:

<ListView
    android:scrollable="false" 
    android:scrollbars="none"
    ....
/>
Sign up to request clarification or add additional context in comments.

1 Comment

Code blocks on their own are not usually useful answers. Please edit your answer and explain what the code you're showing does, and why/how that code answers the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.