File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
app/src/main/java/com/dk/en/floatingview Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11apply 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
35android {
46 compileSdkVersion 26
You can’t perform that action at this time.
0 commit comments