CymChad / CymChad/BaseRecyclerViewAdapterHelper

横向加载更多布局问题

Open
#3,865 2 comments 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

recyclerview设置为横向加载的时候,loadmore会占满一屏。这是不符合横向设计的。
加载更多 baseAdapter.loadMoreModule.loadMoreView 类
SimpleLoadMoreView这个只适合在竖向的时候用,这个时候宽是match_parent,高是wrap_content,居中,布局里面的加载中圆圈在loading文字的前面,这是没问题的。
但是横向时候就需要改为宽wrap_content,高match_parent,并且布局里面的加载中圆圈要在loading文字的上面,这才符合横向的情况,希望修改一下。

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 with baseAdapter.loadMoreModule.loadMoreView and inspect SimpleLoadMoreView, then reproduce the issue with a horizontally oriented RecyclerView. The horizontal load-more view should use wrap_content width and match_parent height, with the loading indicator above the text, while the existing vertical layout remains unchanged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.