本文作为动画引文,希望大家能够阅读下一篇:
导语
本文主要是写出一些简单的修图功能,用到关键技术是颜色矩阵 ColorMatrix类。老规矩,就先来看美丽的效果图吧!
咳咳。。。。虽然有些粗糙,但不妨碍了解技术。接下来,看代码如何实现。
实现效果图
代码实现
(1)XML代码参考:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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.aiyang.animationdemo.MainActivity"
android:padding="50dp"
android:orientation="vertical">
<TextView
android:id="@+id/hello"
android:layout_width="match_parent"
android