Examples of Android listview data display and prompt information

Examples of Android listview data display and prompt information

Recently, our testers said that all our lists should be made as a prompt without data. At that time, my expression was like this = =!!! My God... So many lists really need to be done one by one!!! Then I thought for a moment, so I'll directly transform listview... Just do it.

Effect without data:

Effect with data:

Code: nodatalistview.java

Attribute declaration:

How to use?

In fact, several items are detected in OnDraw. If the adapter is null or the count of the adapter is less than or equal to the minimum number of items, the image without data will be displayed in the background

Thank you for reading, hope to help you, thank you for your support to this site!

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