当需要为应用程序UI控件选择背景的时候,开发者会添加自定义的颜色和形状来代替系统的默认样式,
圆角边框看起来是很不错的效果,开发者只需要添加几行代码,就可以在应用程序中使用这种效果。
下面我们做一个例子看一看,新建一个main.xml代码:
其中我们为背景属性指定了drawable值,但是这个值并不是一个图片,而是一个xml文件。文件代码如下:
仅仅只是两行代码。让我们看一下效果吧:
当需要为应用程序UI控件选择背景的时候,开发者会添加自定义的颜色和形状来代替系统的默认样式,
圆角边框看起来是很不错的效果,开发者只需要添加几行代码,就可以在应用程序中使用这种效果。
下面我们做一个例子看一看,新建一个main.xml代码:
其中我们为背景属性指定了drawable值,但是这个值并不是一个图片,而是一个xml文件。文件代码如下:
仅仅只是两行代码。让我们看一下效果吧:
大任务拆分,让并行嗨起来!
51cto的博客有点味道了。。。。。。。。。。考虑。。换地方。。。
13个JS代码技巧
01刚当程序员时,我是属于那种勤勤恳恳类型的员工,工作态度用
SpringMVC简单实例(看起来有用) 参考: SpringMVC 基础教程 简单入
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M