Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序中有 ListFragment。
我有两种可能的情况:
那么,向用户展示这一点的最佳方式是什么?
我尝试过使用@android:id/empty,但它在两种情况下都显示出来。我无法控制它的行为。
@android:id/empty
我的建议是: 1. 在加载数据时旋转进度条 2. 简短的祝酒词,说明“无数据”或列表为空时有意义的内容。