What is the duration of a Toast LENGTH_LONG and LENGTH_SHORT

后端 未结 6 1399
梦毁少年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条回答
  •  失恋的感觉
    2020-12-01 10:49

    I am wondering that why do you not use method setDuration() supported in Toast.java class???

     /**
     * Set how long to show the view for.
     * @see #LENGTH_SHORT
     * @see #LENGTH_LONG
     */
    public void setDuration(@Duration int duration) {
        mDuration = duration;
    }
    

提交回复
热议问题