This is working for me, no different to yours if you have a layout and have loaded it which is not obvious from your code.
There is a thought in the back of my mind that on a particular device, the toast message didn't show if the keyboard was on screen (or was behind it). I'm not sure what device it was.