Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

renderthread

> 编程语言
Open source

Android's RenderThread wrapper

192 stars0 likes0 views
WebsiteGitHub

About

Android's RenderThread wrapper

This library wraps the native RenderThread, providing a type-safe way to run custom animations off the UI thread.

Read about what it means in this Medium article.

It transparently falls back to using the standard drawing methods if the hidden APIs aren't available, or whenever hardware acceleration is not enabled on the specified Canvas.

By default it will automatically try to access the RenderThread on Android versions that are known to work (Lollipop and Marshmallow), but you can force it to try on any version (like the N preview) by calling this code once before using it:

java
RenderThread.init(true);

Capabilities

So far the RenderThread is capable of making the following drawing calls, which mirror the respective Canvas ones, but where each property can be animated:

  • drawCircle(centerX, centerY, radius, paint)
  • drawRoundRect(left, top, right, bottom, cornerRadiusX, cornerRadiusY, paint)

The paint values that can be animated are the following:

  • alpha
  • stroke width

Usage

To use it, there are generally 3 steps involved:

…

Check the sample for a complete implementation.

Download

Gradle

gradle
repositories {
    maven {
        url 'https://dl.bintray.com/takhion/maven/'
    }
}

dependencies {
    compile 'me.eugeniomarletti:renderthread:1.0.0'
}

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言