1.AndroidUtilCode
常用工具合集
implementation 'com.blankj:utilcode:1.23.7'
// if u use AndroidX, use the following
implementation 'com.blankj:utilcodex:1.23.7'
2.LitePal
数据库工具
dependencies {
implementation 'org.litepal.android:java:3.0.0'
}
or
dependencies {
implementation 'org.litepal.android:kotlin:3.0.0'
}
<?xml version="1.0" encoding="utf-8"?>
<litepal>
<dbname value="demo" />
<version value="1" />
<list>
<mapping class="com.test.model.Reader" />
<mapping class="com.test.model.Magazine" />
</list>
</litepal>
public class MyOwnApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
LitePal.initialize(this);
}
...
}