Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Toasting my way ?

StrangerweatherStrangerweather GBMember ✭✭
edited June 2016 in Xamarin.Android

Hi! I have a custom toast xml file ready, but I can't seem to connect it to my existing code. This is what I have so far:

`private void RadioButtonClick(object sender, EventArgs e)
View view = LayoutInflater.Inflate(Resource.Drawable.custom_toast, null);
var design = view.FindViewById(Resource.Id.my_custom_toast);

        RadioButton rb = (RadioButton)sender;

        string toast = string.Format("{0}", rb.Text);

        var customToast = new Toast(this)
            View = view
        Toast.MakeText(this, rb.Text, ToastLength.Long).Show();

        if (toast == "French")


If anyone has any idea what I could be doing wrong, I would be grateful to be told! Cheers! :-)

Sign In or Register to comment.