logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

kotlin语言中Toast使用

一.普通使用Toast.makeText(this, "Androidly Short Toasts", Toast.LENGTH_SHORT).show();Toast.makeText(this, "Androidly Long Toasts", Toast.LENGTH_LONG).show();1.这里的this代表的是content环境2.如果字符串定义在values文件夹的string

#android#kotlin#android studio
到底了