Android Layout_weight For Fixed Width Not Working
I'm trying to use layout_weight and layout_width with a linear layout with horizontal orientation. The linear layout contains 1 TextView and 2 RadioButtons (in a RadioButtonGroup)
Solution 1:
Try this..
I guess your listview width as wrap_content
change it as match_parent
and try
<ListViewandroid:layout_width="match_parent"android:layout_height="wrap_content" />
Solution 2:
Issue is with your listview. There is no issue with the item layout
Change your listview
android:layout_width="match_parent""
Solution 3:
If you want a layout on one side and one on the other, use RelativeLayout: alignParentRight/Left.
Post a Comment for "Android Layout_weight For Fixed Width Not Working"