I am using Toast.makeText to display results from dialogs and having a slightly odd problem: the text is displaying above the frame that should hold it, like this:
The message is misaligned with the frame. Please align it better.
[_________________________________________________]
I’m generally using code looking like
Toast bread = Toast.makeText(getContext(), R.string.message, Toast.LENGTH_LONG);
bread.show();
from a dialog. I’ve heard bad context can sometimes cause inflation problems but getOwnerActivity() is returning null, so that’s out. In any case, I would have thought getContext() would supply the context passed in at construction time, which is the activity anyway.
Any suggestions?
you can try this: