When I now tap on the header to expand the list, the body layout displays but only uses about 30% of the screen width, even though I defined it with "match_parent".
It only seems to happen if I define the LinearLayout orientation to "vertical", if I define it "horizontal" the view actually uses the full width of the screen.
Also if I change LinearLayout to RelativeLayout it also uses the full width of the screen. The only time it doesn't work is if I use LinearLayout together with orientation "vertcal".
Generally it works fine but something is behaving very strange. I have this expandable list:
and this is the layout of "layout_socialmedia_body":
When I now tap on the header to expand the list, the body layout displays but only uses about 30% of the screen width, even though I defined it with "match_parent". It only seems to happen if I define the LinearLayout orientation to "vertical", if I define it "horizontal" the view actually uses the full width of the screen. Also if I change LinearLayout to RelativeLayout it also uses the full width of the screen. The only time it doesn't work is if I use LinearLayout together with orientation "vertcal".
I assume this is a bug? Please fix, thank you :)