DIsable scrolling for listview and enable for whole layout

前端 未结 3 1426
你的背包
你的背包 2021-01-05 13:43

Hi iam currently working on an android application it has two list views inside the main activity.What i want is disable the scrolling of two lists and allow the whole page

3条回答
  •  伪装坚强ぢ
    2021-01-05 14:02

    scroolview allow only one child. so to solve your problem you need to create scrollview in the xml inside put linearLayout and inside the LinearLayout put all your content.

    and for disabling the list scrolling you can use inside MainActivty : list .setVerticalScrollBarEnabled(false);

    
           
               
               
               
               
               
               
           
       
    

提交回复
热议问题