android / android/large-screen-codelabs

Change the background color of the Advanced Stylus low latency to white background

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
60
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Hi there a way to change the background color of FastRenderer to be white instead of black. I am able to change to white only after the first drawing event happen like this in FastRenderer#114

// Clear the screen with white
GLES20.glClearColor(1.0f, 1.0f, 1.0f, 1.0f)

However the app always initialize with black background. Also is it possible to overlay the drawing on top of a webview?

Contributor guide

Open the contributing guide

Research direction

Start by inspecting FastRenderer#114 and the renderer initialization path to trace why the first frame is black. Verify that the initial background is white before any drawing event, then investigate whether the existing rendering surface can overlay a WebView. Done means the startup color behavior is resolved and the overlay request has a clear implementation or feasibility outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
computer-graphics, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.