Recyclerview is one of the solutions to incomplete text display when nesting textview

First describe this bug: when a simple textview nested recyclerview is used as an ItemView, the layout may be overwritten in the text. The layout of ItemView is actually very simple, that is, a relativelayout nested textview layout, and the height of the two controls is wrap_ Content is displayed normally during preview, but when you run to the real machine test, you will find that the bottom of textview as each ItemView will be slightly covered, resulting in some occlusion of text.

In fact, this bug is easy to solve. After all, it is not an obvious phenomenon in the large layout of recyclerview nested GridView on the Internet. Ordinary people may ignore this small bug, but they feel very uncomfortable. If you don't want to ignore this bug, you can try setting the padding attribute on textview. Remember that it must be padding rather than margin, Because the outer margin of textview is often confused, the effect of using inner margin padding may be better.

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
分享
二维码
< <上一篇
下一篇>>