CymChad / CymChad/BaseRecyclerViewAdapterHelper

我首次进入页面第一次加载数据时可以不显示空布局吗,而是在我请求完接口没数据才显示出来。现在是第一次进页面必然先显示一次空布局,体验很不好。

Open
#3,167 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
24.6k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

我首次进入页面第一次加载数据时可以不显示空布局吗,而是在我请求完接口没数据才显示出来。现在是第一次进页面必然先显示一次空布局,体验很不好。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Android library renders its empty layout during the first data request, then follow the state change when that request completes. Done means the initial loading state does not show the empty layout, while a completed request with no data does.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.