一张图片的不同颜色的实现
2016-09-12 20:20
387 查看
xml中的实现
效果图
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.administrator.navigation.MainActivity"> <ImageView android:id="@+id/iv1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:src="@mipmap/ic_launcher"/> <ImageView android:id="@+id/iv2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/iv1" android:src="@mipmap/ic_launcher" android:tint="#3F51B5" /> <ImageView android:id="@+id/iv3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/iv2" android:scaleType="centerInside" android:src="@mipmap/ic_launcher" android:tint="#FF4081" /> </RelativeLayout>
效果图
相关文章推荐
- Android布局的小窍门?
- Web布局连载——两栏固定布局(五)
- JSON、XML、TOML、CSON、YAML 大比拼
- XML 与 JSON 优劣对比
- As3.0 xml + Loader应用代码
- 网马生成器 MS Internet Explorer XML Parsing Buffer Overflow Exploit (vista) 0day
- ext读取两种结构的xml的代码
- 实例解析Ruby程序中调用REXML来解析XML格式数据的用法
- Ruby中XML格式数据处理库REXML的使用方法指南
- C#实现导出List数据到xml文件的方法【附demo源码下载】
- 样式表CSS布局经验
- 在winform下实现左右布局多窗口界面的方法之续篇
- C#中如何使用 XmlReader 读取XML文件
- C#针对xml基本操作及保存配置文件应用实例
- Ruby使用REXML库来解析xml格式数据的方法
- Ruby程序中创建和解析XML文件的方法
- Ruby的XML格式数据解析库Nokogiri的使用进阶
- asp下查询xml的实现代码
- sqlserver FOR XML PATH 语句的应用