diff --git a/app/src/main/java/es/dmoral/toastysample/MainActivity.java b/app/src/main/java/es/dmoral/toastysample/MainActivity.java
index 6db2fd2..301284c 100644
--- a/app/src/main/java/es/dmoral/toastysample/MainActivity.java
+++ b/app/src/main/java/es/dmoral/toastysample/MainActivity.java
@@ -9,6 +9,7 @@
import android.text.style.StyleSpan;
import android.view.View;
+import es.dmoral.toasty.ShadowOptions;
import es.dmoral.toasty.Toasty;
import static android.graphics.Typeface.BOLD_ITALIC;
@@ -60,6 +61,14 @@ public void onClick(View view) {
Toasty.warning(MainActivity.this, R.string.warning_message, Toasty.LENGTH_SHORT, true).show();
}
});
+ findViewById(R.id.button_shadow_toast).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Toasty.Config.getInstance().setShadow(ShadowOptions.DROP_SHADOW).apply();
+ Toasty.warning(MainActivity.this, R.string.shadow_message, Toasty.LENGTH_SHORT, true).show();
+ Toasty.Config.reset();
+ }
+ });
findViewById(R.id.button_normal_toast_wo_icon).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 79238be..a57af3b 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -59,21 +59,32 @@
android:layout_alignParentEnd="true" />
+
+
+ android:layout_alignParentRight="true"
+ android:text="@string/shadow_toast" />