Skip to content Skip to sidebar Skip to footer

Display Whole Content Of Listview Item

Here I want to display whole content of the listview item on the listview. How can I achive this? ArrayAdapter< String> myadapter = new ArrayAdapter(getApplic

Solution 1:

See this question

android listview item height

wrap_content in the ListView won't do nothing, as the height that matters here is the one from the item.

Solution 2:

Please change it to this and check if you still have any issue...

<ListViewandroid:id="@+id/questions_list"android:layout_width="fill_parent"android:layout_height="wrap_content"android:cacheColorHint="@android:color/transparent" ></ListView>

Solution 3:

You have to create the custom list item layout for the listview. You cannot do with that default List Item android.R.layout.simple_list_item_single_choice

Solution 4:

android:layout_height="wrap_content" :)

Post a Comment for "Display Whole Content Of Listview Item"