Good day!
I created Toast and pasted a picture there (via LinearLayout). But for some reason, after adding a picture, Toast stretched vertically to the maximum. Ugly. :( I did not find the parameter setting the maximum height. How to be?
Thanks for the answer.
Toast creation code:
Toast toast = Toast.makeText(getApplicationContext(), R.string.short_toast_message, Toast.LENGTH_SHORT); toast.setGravity(Gravity.CENTER, 0, 0); LinearLayout ShortToastContainer = (LinearLayout) toast.getView(); ImageView ShortToastImageView = new ImageView(getApplicationContext()); ShortToastImageView.setImageResource(R.drawable.message); ShortToastContainer.addView(ShortToastImageView, 0); toast.show();