Android Code sample: Toast

Create custom Toast with layout XML

This example show how to create custom Toast with layout XML, to include a ImageView, fixed text and custom message. Create the layout XML, layout/layout_mytoast.xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xm…

Make TRANSPARENT Toast

It's a simple way to make TRANSPARENT Toast. Java package com.blogspot.android_er.mycustomtoast; import android.graphics.Color; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.wid…

Load More
That is All