Skip to content

Commit 756eafa

Browse files
committed
Merge branch 'master' of github.com:YMLopez/ToastUtils
# Conflicts: # .idea/caches/build_file_checksums.ser # app/build.gradle # app/src/main/java/com/lopez/toast/ToastApplication.java
2 parents 825c0c0 + 5aa5111 commit 756eafa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ allprojects {
7777
在你app的gradle里面添加:
7878
</br></br>
7979

80-
dependencies {
81-
implementation 'com.github.YMLopez:ToastUtils:1.0.0'
82-
}
80+
implementation('com.github.YMLopez:ToastUtils:1.0.2'){
81+
exclude group: 'com.android.support'
82+
}
8383

8484
</br></br>
8585

Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
package com.lopez.toast;
22

3-
import android.support.v7.app.AppCompatActivity;
3+
import android.app.Activity;
44
import android.os.Bundle;
55
import android.view.View;
66

77

88

9-
public class MainActivity extends AppCompatActivity {
9+
public class MainActivity extends Activity {
1010

1111
@Override
1212
protected void onCreate(Bundle savedInstanceState) {
1313
super.onCreate(savedInstanceState);
1414
setContentView(R.layout.activity_main);
15-
15+
//也可以在Application中初始化
1616
/*ToastUtils toast = ToastUtils.initToast(this);
1717
toast.setLayout(R.layout.toast_layout_white);*/
1818
}
1919

2020
public void hello(View view) {
2121
//ToastUtils.showToast("你好啊!");
2222
//ToastUtils.showToast(R.string.hi, 1000);
23-
ToastUtils.showToastLong("我很菜呀~");
23+
//ToastUtils.showToastLong("我很菜呀~");
2424
}
2525

2626
}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.1.3'
10+
classpath 'com.android.tools.build:gradle:3.1.4'
1111

1212

1313
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)