wordpress-mobile / wordpress-mobile/WordPress-Android

Reduce CardView use to avoid Overdraw

Open
#10,839 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Enhancement Performance
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected behavior

Replace the use of cardviews to avoid CPU-related performance problems

Actual behavior

over bad

There are several elements such as the website icon that contribute to overdrawing problems due to the use of CardViews.

Steps to reproduce the behavior

Changing the use of CardViews with transparent ConstraintLayouts allows you to achieve the same visual effect with much lower Overdrawing levels.

over good

Tested on [device], Android [version], WPAndroid [version]

Tested on Motorola G6 play. Android 9.

Contributor guide

Open the contributing guide

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 locating the CardView usages in the WordPress-Android screens that include elements such as the website icon, then inspect the current overdraw behavior on Android. Done means replacing the relevant CardViews while preserving the visual effect and achieving lower overdraw levels.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.