Android ScrollView not working properly

前端 未结 2 1674
遥遥无期
遥遥无期 2020-12-18 07:32

I developed an android application in which the scroll-view is not scrolling.. I am posting the code here pls check and if found any error pls help.. Here I used Linear Layo

相关标签:
2条回答
  • 2020-12-18 08:07

    Remove RelativeLayout with id "header901", it is useless, you can just leave headertext901 withe the main LinearLayout as parent ...

    Then remove the following tags from SCrollView :

    android:scrollbars="vertical"
    android:fillViewport="true"
    

    I would also advise to replace your RelativeLayout with id "lLayout901" by a LinearLayout, and follow @Martin Marconcini's advice to replace fill_parent with match_parent.

    0 讨论(0)
  • 2020-12-18 08:31

    You have used fill parent for your Scrollview height layout Use android:layout_height="wrap_content" for scrollview

    And i am sugesting to use LinearLayout with vertical orientation layout for this kind of use

    0 讨论(0)
提交回复
热议问题