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"