Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
launcherdemo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lihuaikun
launcherdemo
Commits
19ee720f
Commit
19ee720f
authored
Feb 25, 2020
by
hk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change readme.md
parent
e9973638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
README.md
README.md
+6
-7
No files found.
README.md
View file @
19ee720f
...
...
@@ -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
//锁屏
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment