Problem while customising Toast message
<p>I am customising the Toast message with the following code</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        TextView textView = new TextView(this);
        textView.setBackgroundColor(Color.YELLOW);
        textView.setTextColor(Color.WHITE);
        textView.setPadding(10, 10, 10, 10);
        textView.setText("Textview as Toast");

        Toast toastView = new Toast(this);
        toastView.setView(textView);
        toastView.setDuration(Toast.LENGTH_LONG);
        toastView.setGravity(Gravity.CENTER, 0, 0);
        toastView.show();

    }
</code></pre>

<p>The problem I am facing is that , when I am adding my own background color to the TextView , its not taking . Its taking the colours which are defined at the Color class.</p>

<p>Kindly provide your inputs/suggestions.</p>

<p>Thanks in advance.</p>

<p>Warm Regards,</p>

<p>CB</p>
