Solve the problem of invalidation of the outermost margin in the item of Android listview

1. This phenomenon is found in the development:

The item in the list is LinearLayout. The outermost layer of this item has the margin property set. All failed.

As can be seen from the figure, the layoutparam of abslistview does not contain margin information. A layout with margin is a normal basic layout.

Solution:

Add the following code to your listview

The above article to solve the problem of the failure of the outermost margin in the item of Android listview is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>