Skip to content

Commit 9ba9447

Browse files
committed
提交打包配置
1 parent 7356927 commit 9ba9447

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

app/src/main/java/com/dk/en/floatingview/App.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ public class App extends Application {
1010
@Override
1111
public void onCreate() {
1212
super.onCreate();
13-
FloatWindow.with(this)
14-
.setLayoutId(R.layout.float_music)
13+
FloatWindow.with(this)//application上下文
14+
.setLayoutId(R.layout.float_music)//悬浮布局
15+
//.setFilter(Test1_1Activity.class)//过滤activity
16+
//.setLayoutParam()//设置悬浮布局layoutParam
1517
.build();
1618
FloatWindow.get().setOnClickListener(new DkFloatingView.ViewClickListener() {
1719
@Override

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99

1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:3.1.3'
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1213
}
1314
}
1415

floatingview/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven' //this way we can find the android-maven in jcenter
3+
group='com.github.dk' //this is your github name
24

35
android {
46
compileSdkVersion 26

0 commit comments

Comments
 (0)