Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

实现Modifier.waveLoading扩展#1

Open
qdsfdhvh wants to merge 3 commits into
vitaviva:mainvitaviva/ComposeWaveLoading:mainfrom
qdsfdhvh:mainqdsfdhvh/ComposeWaveLoading:mainCopy head branch name to clipboard
Open

实现Modifier.waveLoading扩展#1
qdsfdhvh wants to merge 3 commits into
vitaviva:mainvitaviva/ComposeWaveLoading:mainfrom
qdsfdhvh:mainqdsfdhvh/ComposeWaveLoading:mainCopy head branch name to clipboard

Conversation

@qdsfdhvh

@qdsfdhvh qdsfdhvh commented Sep 22, 2021

Copy link
Copy Markdown

基本使用:

Box(
    modifier = Modifier
        .weight(1f)
        .waveLoading(
            backDrawType = DrawType.DrawImage,
            progress = progress,
            velocity = velocity,
            amplitude = amplitude,
        ),
) {
}

问题:

  • 1.边缘有点瑕疵,我尝试添加了isAntiAlias=true不行,暂时不知道怎么解决。
  • 2.伪适配了BackDrawType.None,未实现真正的透明背景。
  • 3.使用了两次drawContent(),不适合较为复杂的Layout。
1632303658086012.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.