百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

renderthread

> 编程语言
开源

Android 的 RenderThread 包装器

192 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Android 的 RenderThread 包装器

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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