how resize Android ListView row height
Solution 1
The problem was background image size. android:background="@drawable/list_style"
I use image from background. so i changed size of image. thanks.
Solution 2
You can just simply provide fixed height in row layout XML:
android:layout_height="25dp"
One additional remark: Always use dp
(or dip
) instead of px
when setting view dimensions.
Solution 3
Just adding to the previous answers, you can remove android:minWidth
and android:minHeight
to allow the row wrap the text or you can set the height you want.
Android has a default value for list item height.
android:height="?android:attr/listPreferredItemHeight"

Author by
Admin
Updated on May 23, 2020Comments
-
Admin about 2 years