背景渐变色(shape,gradient)-Andoird
2015-12-22 15:04
225 查看
知识简介 |
实现过程: |
res/drawable/background_login.xml
[代码]xml代码:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#FFF" android:endColor="#000" android:angle="45" /> </shape>
第二步:
res/layout/login.xml
[代码]xml代码:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background_login"> </LinearLayout>
常用颜色 |
相关文章推荐
- spatialhadoop2.3源码阅读(八) RTree索引生成方法(二)
- Gsoap搭建WebService服务的一个简单实现(windows)
- hyper-v 中 安装 Centos 7.0 设置网络 教程
- 【转载】Eclipse快捷键 10个最有用的快捷键
- GIT 冲突的解决
- Android 开发中遇到的问题与解决方式
- 好用的xcode插件
- Android 一个窗口是怎么创建出来的?
- 【转】android蓝牙开发 蓝牙设备的查找和连接
- 【转】关于URL编码/javascript/js url 编码/url的三个js编码函数
- 版本控制器git 学习笔记(Git安装以及配置)
- JQuery的animate中callback函数的使用
- html乱码原因与网页乱码解决方法
- 《Linux命令应用大词典》一书,讲述729个命令,1935个例子
- Android之TypedArray 为什么需要调用recycle()
- 北斗七星
- 详解Android四种存储方式
- 安装ElasticSearch搜索工具并配置Python驱动的方法
- lua在stm32上的移植
- 性能测试--如何设定定时开始性能测试