Android Toast Duration

Can anyone help reduce the toast time to 1 sec in android kotlin?

Per the Android Documentation:

Toast.makeText(context, text, duration).show()

This is supported on the Android API. Please use the documentation as a reference for these kinds of questions. It’s usually supported by the Android API.