-
Notifications
You must be signed in to change notification settings - Fork 5
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
9 changed files
with
74 additions
and
53 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
41 changes: 0 additions & 41 deletions
41
app/src/main/java/com/nasduck/duckandroiddialog/MainActivity.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
app/src/main/java/com/nasduck/duckandroiddialog/TestActivity.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,43 @@ | ||
package com.nasduck.duckandroiddialog; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
import com.nasduck.dialoglib.Base.DuckDialog; | ||
|
||
import butterknife.ButterKnife; | ||
import butterknife.OnClick; | ||
|
||
public class TestActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
ButterKnife.bind(this); | ||
} | ||
|
||
@OnClick(R.id.btn_toast_text) | ||
public void onTextToast() { | ||
DuckDialog.assignTextToast("hello world!!") | ||
.setCancelable(true) | ||
.buildTextToast() | ||
.show(getSupportFragmentManager(), ""); | ||
} | ||
|
||
@OnClick(R.id.btn_toast_image) | ||
public void onImageToast() { | ||
DuckDialog.assignImageToast() | ||
.setCancelable(true) | ||
.buildImageToast() | ||
.show(getSupportFragmentManager(), ""); | ||
} | ||
|
||
@OnClick(R.id.btn_toast_text_image) | ||
public void onTextImageToast() { | ||
DuckDialog.assignTextAndImageToast("hello world!!") | ||
.setCancelable(true) | ||
.buildTextImageToast() | ||
.show(getSupportFragmentManager(), ""); | ||
} | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.