Skip to content Skip to sidebar Skip to footer

Android - TextView's Weight Property In LinearLayout Is Being Ignored When Used As ListView Row View

I have a CustomListView, when I longClick on a row, the layout of that row changes to a different listRow Layout. So far, everything is working, however, the layout of the new view

Solution 1:

Call instead:

ll_inflate.addView(child, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));

Post a Comment for "Android - TextView's Weight Property In LinearLayout Is Being Ignored When Used As ListView Row View"