十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
| privateToast toast;publicvoidshowMsg(String arg) {if(toast == null) {toast = Toast.makeText(this, arg, Toast.LENGTH_SHORT);} else{toast.cancel();toast.setText(arg);}toast.show();} | 
res/drawable目录下面建立一个设置圆角边框参数的xml文件,如下:
corner_round.xml:
[[73539]]
调用:android:background="@drawable/corner_round"
【编辑推荐】