diff --git a/app/src/main/java/com/nasduck/duckandroiddialog/TestActivity.java b/app/src/main/java/com/nasduck/duckandroiddialog/TestActivity.java index 64fe426..af43ef6 100644 --- a/app/src/main/java/com/nasduck/duckandroiddialog/TestActivity.java +++ b/app/src/main/java/com/nasduck/duckandroiddialog/TestActivity.java @@ -40,13 +40,6 @@ public void onToastDefaultTypeClick() { startActivity(intentToToastDefaultType); } - @OnClick(R.id.btn_toast_text) - public void onTextToast() { - DuckDialog.showToast(this, "hello world!!"); - //DuckDialog.assignTextToast("hello world!!") - // .show(this); - } - @OnClick(R.id.btn_toast_image) public void onImageToast() { DuckDialog.assignImageToast() diff --git a/app/src/main/java/com/nasduck/duckandroiddialog/ToastActivity.java b/app/src/main/java/com/nasduck/duckandroiddialog/ToastActivity.java index 82a2875..62e9240 100644 --- a/app/src/main/java/com/nasduck/duckandroiddialog/ToastActivity.java +++ b/app/src/main/java/com/nasduck/duckandroiddialog/ToastActivity.java @@ -25,7 +25,7 @@ public void onToastDefaultClick(View view) { } public void onToastCustomClick(View view) { - ToastBuilder.create() + ToastBuilder.create(this) .setText("Toast Customized") .setTextSize(16) .setTextColor(android.R.color.holo_orange_dark) @@ -34,6 +34,6 @@ public void onToastCustomClick(View view) { .setPaddingHorizontal(64) .setPaddingVertical(32) .setDelay(3000) - .show(this); + .show(); } } diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 4f15bfd..400a801 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -19,12 +19,6 @@ android:layout_height="wrap_content" android:text="Toast Type"/> -