Iam have a layout like the below
--scrollview--
--linearlayout--
--TextView--
--TextView--
--TextView--
--TextView--
--TextView--
--edittext--
--edittext--
--edittext--
--edittext--
--TextView--
--listview--
--linearlayout--
--scrollview--
list view is scrolling seperatly with inner scroll, How to make the whole layout scroll with out list view inner scroll.
You should not have a ListView
inside a ScrollView
. This is highly discouraged. Try to find another way to build the layout you want.
It defeats the purpose of listView, when you want to disable scroll inside it. I would suggest you to inflate the views of your listView inside a vertical LinearLayout if you want to scroll it as a part of scrollView.
Please change LinearLayout
to RelativeLayout
and see. I too had this same issue once. It solved my issue too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.