-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
77 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 29 additions & 21 deletions
50
app/src/main/java/com/github/lany192/blurdialog/sample/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
package com.github.lany192.blurdialog.sample; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.view.View; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
private final String TAG = "MainActivity"; | ||
import com.lany.box.activity.BaseActivity; | ||
|
||
import butterknife.OnClick; | ||
|
||
public class MainActivity extends BaseActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
findViewById(R.id.button).setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
SampleDialogFragment dialogFragment = SampleDialogFragment.newInstance(); | ||
dialogFragment.show(getSupportFragmentManager(), TAG); | ||
} | ||
}); | ||
findViewById(R.id.button2).setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
SampleBottomDialogFragment dialogFragment = SampleBottomDialogFragment.newInstance(); | ||
dialogFragment.show(getSupportFragmentManager(), TAG); | ||
} | ||
}); | ||
protected boolean hasBackBtn() { | ||
return false; | ||
} | ||
|
||
@Override | ||
protected int getLayoutId() { | ||
return R.layout.activity_main; | ||
} | ||
|
||
@Override | ||
protected void init(Bundle bundle) { | ||
|
||
} | ||
|
||
@OnClick(R.id.button) | ||
void buttonClicked() { | ||
SampleDialogFragment dialogFragment = SampleDialogFragment.newInstance(); | ||
dialogFragment.show(getSupportFragmentManager(), TAG); | ||
} | ||
|
||
@OnClick(R.id.button2) | ||
void button2Clicked() { | ||
SampleBottomDialogFragment dialogFragment = SampleBottomDialogFragment.newInstance(); | ||
dialogFragment.show(getSupportFragmentManager(), TAG); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/github/lany192/blurdialog/sample/MyApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.github.lany192.blurdialog.sample; | ||
|
||
import android.app.Application; | ||
|
||
import com.lany.box.Box; | ||
|
||
public class MyApp extends Application { | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
Box.of().init(this, BuildConfig.DEBUG); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorAccent">#FF4081</color> | ||
<color name="colorPrimary">#303030</color> | ||
<color name="colorPrimaryDark">#303030</color> | ||
<color name="colorAccent">#303030</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Dec 21 10:36:36 CST 2017 | ||
#Tue Oct 16 11:10:42 CST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters