【文件属性】:
文件名称:Android代码-Android夜间模式切换框架
文件大小:2.01MB
文件格式:ZIP
更新时间:2022-08-26 17:36:15
Android代码
NightOwl
It is an experimental project for switching day/night mode on Android.
View the demo video on Youtube. This will help you understand the project.
Dependencies
add nightowllib library to your project which published in jCenter
compile 'com.asha.nightowllib:nightowllib:0.2'
Setup
init the NightOwl in Application class, such as
NightOwl.builder().defaultMode(0).create();
then you need call three method in your Activity class, such as
public class DemoActivity extends AppCompatActivity