Is there any recommendation on how big each cell has to be in terms of dp in a listview. (Assume a list view with just one line of text)?
Thanks,
Teja
Is there any recommendation on how big each cell has to be in terms of dp in a listview. (Assume a list view with just one line of text)?
Thanks,
Teja
if "how big each cell" means row height then
android:layout_height="?android:attr/listPreferredItemHeight"
should help
Addition to Selvin's answer.
If you want it from source code:
R.attr.listPreferredItemHeight
Via Code:
R.attr.listPreferredItemHeight is only the resource id and not the value.
this works: Android: how to get value of "listPreferredItemHeight" attribute in code?