I am trying to display a toast message on top of the screen but it keep showing on the bottom.
This the code I am using
val toast = Toast.makeText(context, message, Toast.LENGTH_LONG)
toast.setGravity(Gravity.TOP or Gravity.LEFT, 0, 0)
toast.show()
I tried as well to change bkg and color but it seems difficult now even getView become deprecated
any idea who to force the toast on top of the screen ?
Thanks