What is the duration of a Toast LENGTH_LONG and LENGTH_SHORT

后端 未结 6 1420
梦毁少年i
梦毁少年i 2020-12-01 10:13

I need the exact duration of LENGTH_LONG and LENGTH_SHORT in milliseconds (ms). Also I need to know if the duration of Toast message with LENGTH_LONG will have the same dura

6条回答
  •  猫巷女王i
    2020-12-01 10:53

    Answered here. Like you mentioned Toast.LENGTH_SHORT and Toast.LENGTH_LONG are not in ms but 0 or 1.

    The actual durations are:

    private static final int LONG_DELAY = 3500; // 3.5 seconds
    private static final int SHORT_DELAY = 2000; // 2 seconds
    

提交回复
热议问题