This is the way I have to show the Toast for 500 milliseconds. Though, it\'s showing more than a second.
Toast
Toast.makeText(LiveChat.this, \"Typing\
This can't be done. The values of Toast.LENGTH_SHORT and Toast.LENGTH_LONG are 0 and 1. This means they are treated as flags rather than actual durations so I don't think it will be possible to set the duration to anything other than these values.
Toast.LENGTH_SHORT
Toast.LENGTH_LONG