AppDress
AppDress is a android library that change app ui color with sample code.
Install / Use
/learn @xiaolf1/AppDressREADME
AppDress
AppDress is a android library that change app ui color with simple code. coextensive with App 黑白化实现探索,有一行代码实现的方案吗?_Hongyang-CSDN博客
Implementation documentation:给App装上漂亮的裙子
case R.id.rb_gray: {
AppDress.tint(new GrayColor());
break;
}
case R.id.rb_eye_protection: {
AppDress.tint(new EyeProtectionColor(0.3f));
break;
}
case R.id.rb_night_mode: {
AppDress.tint(new NightColor());
break;
}
default: {
AppDress.tint(null);
break;
}



Download
Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.lenebf:AppDress:Tag'
}
How to use
1. SDK Init
public class DemoApp extends Application {
@Override
public void onCreate() {
super.onCreate();
AppDress.wear(this);
}
}
2. Tint the dress
// Gray mode
AppDress.tint(new GrayColor());
// Eye protection mode
// AppDress.tint(new EyeProtectionColor(0.3f));
// Night mode
// AppDress.tint(new NightColor());
// Original
// AppDress.tint(null);
3. Exclude view when using night mode
// For Activity
public class MainActivity extends AppCompatActivity implements NightColorFilter {
......
......
......
@Override
public boolean excludeView(@NonNull View view) {
return view instanceof ImageView;
}
}
// For single view
NightColor.revert(view)
License
GNU General Public License v3.0. See the LICENSE file for details.
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
