Commit 19ee720f by hk

change readme.md

parent e9973638
......@@ -12,19 +12,18 @@
implementation 'cn.dankal.android:launcher:1.0.1'
}
```
3. AndroidManifests.xml配置
2. AndroidManifests.xml配置
**1. Application节点的theme必须继承LauncherTheme或者直接使用android:theme="@style/LauncherTheme"\[必须]**
2. 初始化
3. 初始化
```java
//在Application的onCreate中插入代码
//SettingActivity表示拦截系统设置后跳转的页面
LauncherManager.init(this, SettingActivity.class);
```
3. 对应用添加使用规则
4. 对应用添加使用规则
``` java
ManagementInfo managementInfo = new ManagementInfo();
managementInfo.setPackageName("com.tencent.tim");
......@@ -60,7 +59,7 @@
List<String> managementInfoList = new ArrayList<>(); LauncherManager.getInstance().removePackageInfoList(managementInfoList);
```
4. 返回桌面/跳转设置
5. 返回桌面/跳转设置
```java
......@@ -72,7 +71,7 @@
LauncherManager.getInstance().jumpSetting(Context context);
```
5. 设置锁屏模式/解锁屏幕
6. 设置锁屏模式/解锁屏幕
```java
//锁屏
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment