package org.msf.records.ui;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

/** A Toast with a large text size. */
public final class BigToast {
    public static void show(Context context, String message) {
        Toast toast = Toast.makeText(context, message, Toast.LENGTH_LONG);
        LinearLayout layout = (LinearLayout) toast.getView();
        TextView view = (TextView) layout.getChildAt(0);
        view.setTextSize(48);
        toast.show();
    }

    public static void show(Context context, String message, Object... args) {
        show(context,
                String.format(context.getResources().getConfiguration().locale, message, args));
    }

    public static void show(Context context, int messageResource) {
        show(context, context.getResources().getString(messageResource));
    }

    public static void show(Context context, int messageResource, Object... args) {
        show(context, context.getResources().getString(messageResource), args);
    }

    private BigToast() {
        // Prevent instantiation.
    }
}
@@ -152,16 +152,43 @@
 Toast;%0A%0A
+import org.msf.records.R;%0A%0A
 /** A To
@@ -529,15 +529,72 @@
 Text
-Size(48
+Appearance(context, R.style.TextAppearance_Buendia_Large_Inverse
 );%0A 
@@ -1212,8 +1212,9 @@
 %0A    %7D%0A%7D
+%0A

Use a TextAppearance.Buendia style for the BigToast.