135-1821-9792

android常用代码

"color: rgb(255, 0, 0);">// 新建一个toast对象 private Toast toast;   public void showMsg(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"

【编辑推荐】

  1. android 录像/打开video文件
  2. Android程序开发的环境配置
  3. 91分析Android与IOS游戏及软件下载比例数据

网站名称:android常用代码
地址分享:http://wtcwzsj.com/article/cccjdjc.html

其他资讯



Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号