自定义Toast的位置

Toast常用方法

Toast.makeText(content,text,duration);

toast.setDuration(duration);设置持续时间

toast.setGravity(gravity,xoffset,yoffset)设置位置

toast.setText(s)设置提示内容

toast.show()//展示


你可能感兴趣的:(android)