This repository was archived by the owner on Jul 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +37
-20
lines changed
androidTest/java/com/droidbond/loadingbuttonsample
java/com/droidbond/loadingbuttonsample
test/java/com/droidbond/loadingbuttonsample
androidTest/java/com/droidbond/loadingbutton
java/com/droidbond/loadingbutton
test/java/com/droidbond/loadingbutton Expand file tree Collapse file tree 12 files changed +37
-20
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Just add the dependency to your *build.gradle*:
18
18
### How to use
19
19
Inside xml layout
20
20
``` xml
21
- <com .didar .loadingbutton.LoadingButton
21
+ <droidbond .loadingbutton.LoadingButton
22
22
android : layout_width =" wrap_content"
23
23
android : layout_height =" wrap_content"
24
24
android : id =" @+id/normal"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ apply plugin: 'kotlin-android-extensions'
7
7
android {
8
8
compileSdkVersion 28
9
9
defaultConfig {
10
- applicationId " com.didar .loadingbuttonsample"
10
+ applicationId " com.droidbond .loadingbuttonsample"
11
11
minSdkVersion 15
12
12
targetSdkVersion 28
13
13
versionCode 1
Original file line number Diff line number Diff line change 1
- package com.didar .loadingbuttonsample
1
+ package com.droidbond .loadingbuttonsample
2
2
3
3
import android.support.test.InstrumentationRegistry
4
4
import android.support.test.runner.AndroidJUnit4
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
19
19
fun useAppContext () {
20
20
// Context of the app under test.
21
21
val appContext = InstrumentationRegistry .getTargetContext()
22
- assertEquals(" com.didar .loadingbuttonsample" , appContext.packageName)
22
+ assertEquals(" com.droidbond .loadingbuttonsample" , appContext.packageName)
23
23
}
24
24
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- package =" com.didar .loadingbuttonsample" >
3
+ package =" com.droidbond .loadingbuttonsample" >
4
4
5
5
<application
6
6
android : allowBackup =" true"
9
9
android : roundIcon =" @mipmap/ic_launcher_round"
10
10
android : supportsRtl =" true"
11
11
android : theme =" @style/AppTheme" >
12
- <activity android : name =" .MainActivity" >
12
+ <activity android : name =" com.droidbond.loadingbuttonsample .MainActivity" >
13
13
<intent-filter >
14
14
<action android : name =" android.intent.action.MAIN" />
15
15
Original file line number Diff line number Diff line change 1
- package com.didar .loadingbuttonsample
1
+ package com.droidbond .loadingbuttonsample
2
2
3
- import android.support.v7.app.AppCompatActivity
4
3
import android.os.Bundle
4
+ import android.support.v7.app.AppCompatActivity
5
+ import android.util.Log
5
6
import kotlinx.android.synthetic.main.activity_main.*
6
7
7
8
class MainActivity : AppCompatActivity () {
@@ -23,6 +24,14 @@ class MainActivity : AppCompatActivity() {
23
24
24
25
show = ! show
25
26
}
27
+
28
+ custombtn.setOnClickListener {
29
+ Log .d(" hhh" , " hhhh" )
30
+ }
31
+
32
+ normal.setOnClickListener {
33
+ Log .d(" hhh" , " hhhh" )
34
+ }
26
35
}
27
36
28
37
}
Original file line number Diff line number Diff line change 7
7
android : layout_height =" match_parent"
8
8
tools : context =" .MainActivity" tools : layout_editor_absoluteY =" 81dp" >
9
9
10
- <com .didar .loadingbutton.LoadingButton
10
+ <com .droidbond .loadingbutton.LoadingButton
11
11
android : layout_width =" wrap_content"
12
12
android : layout_height =" wrap_content"
13
13
android : id =" @+id/normal"
20
20
android : layout_marginLeft =" 8dp"
21
21
android : layout_marginStart =" 8dp" />
22
22
23
- <com .didar .loadingbutton.LoadingButton
23
+ <com .droidbond .loadingbutton.LoadingButton
24
24
android : layout_width =" wrap_content"
25
25
android : layout_height =" wrap_content"
26
26
app : text =" Custom Button"
Original file line number Diff line number Diff line change 1
- package com.didar .loadingbuttonsample
1
+ package com.droidbond .loadingbuttonsample
2
2
3
3
import org.junit.Test
4
4
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ android {
13
13
minSdkVersion 15
14
14
targetSdkVersion 28
15
15
versionCode 1
16
- versionName " 0.1.1 "
16
+ versionName " 0.1.2 "
17
17
18
18
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
19
19
Original file line number Diff line number Diff line change 1
- package com .didar .loadingbutton ;
1
+ package com .droidbond .loadingbutton ;
2
2
3
3
import android .content .Context ;
4
4
import android .support .test .InstrumentationRegistry ;
@@ -21,6 +21,6 @@ public void useAppContext() {
21
21
// Context of the app under test.
22
22
Context appContext = InstrumentationRegistry .getTargetContext ();
23
23
24
- assertEquals ("com.didar .loadingbutton.test" , appContext .getPackageName ());
24
+ assertEquals ("com.droidbond .loadingbutton.test" , appContext .getPackageName ());
25
25
}
26
26
}
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.didar .loadingbutton" />
2
+ package =" com.droidbond .loadingbutton" />
You can’t perform that action at this time.
0 commit comments