Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit e6d34fb

Browse files
committed
- moved from Bitbucket
1 parent 3d3bd6c commit e6d34fb

11 files changed

Lines changed: 299 additions & 3 deletions

File tree

AndroidManifest.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2012 Steven Rudenko
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18+
package="com.sample.colormatrix"
19+
android:versionCode="1"
20+
android:versionName="1.0" >
21+
22+
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" />
23+
24+
<application
25+
android:icon="@drawable/ic_launcher"
26+
android:label="@string/app_name" >
27+
<activity
28+
android:name=".Main"
29+
android:label="@string/app_name" >
30+
<intent-filter>
31+
<action android:name="android.intent.action.MAIN" />
32+
33+
<category android:name="android.intent.category.LAUNCHER" />
34+
</intent-filter>
35+
</activity>
36+
</application>
37+
38+
</manifest>

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,39 @@
1-
ColorMartix
2-
===========
1+
Color Matrix
2+
===================
33

4-
Sample project to show how draw image with B&amp;W and Sepia filters on Android without creation new one.
4+
Sample project to show how draw image with B&W and Sepia filters on Android without creation new one.
5+
6+
**See [ColorMartix class][1] for more information.**
7+
8+
![Sample image][2]
9+
10+
11+
Developed By
12+
============
13+
14+
* Steven Rudenko - <steven.rudenko@gmail.com>
15+
16+
17+
18+
License
19+
=======
20+
21+
Copyright 2012 Steven Rudenko
22+
23+
Licensed under the Apache License, Version 2.0 (the "License");
24+
you may not use this file except in compliance with the License.
25+
You may obtain a copy of the License at
26+
27+
http://www.apache.org/licenses/LICENSE-2.0
28+
29+
Unless required by applicable law or agreed to in writing, software
30+
distributed under the License is distributed on an "AS IS" BASIS,
31+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32+
See the License for the specific language governing permissions and
33+
limitations under the License.
34+
35+
36+
37+
38+
[1]: http://developer.android.com/reference/android/graphics/ColorMatrix.html
39+
[2]: http://img690.imageshack.us/img690/8021/sampledp.png

proguard.cfg

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-optimizationpasses 5
2+
-dontusemixedcaseclassnames
3+
-dontskipnonpubliclibraryclasses
4+
-dontpreverify
5+
-verbose
6+
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7+
8+
-keep public class * extends android.app.Activity
9+
-keep public class * extends android.app.Application
10+
-keep public class * extends android.app.Service
11+
-keep public class * extends android.content.BroadcastReceiver
12+
-keep public class * extends android.content.ContentProvider
13+
-keep public class * extends android.app.backup.BackupAgentHelper
14+
-keep public class * extends android.preference.Preference
15+
-keep public class com.android.vending.licensing.ILicensingService
16+
17+
-keepclasseswithmembernames class * {
18+
native <methods>;
19+
}
20+
21+
-keepclasseswithmembers class * {
22+
public <init>(android.content.Context, android.util.AttributeSet);
23+
}
24+
25+
-keepclasseswithmembers class * {
26+
public <init>(android.content.Context, android.util.AttributeSet, int);
27+
}
28+
29+
-keepclassmembers class * extends android.app.Activity {
30+
public void *(android.view.View);
31+
}
32+
33+
-keepclassmembers enum * {
34+
public static **[] values();
35+
public static ** valueOf(java.lang.String);
36+
}
37+
38+
-keep class * implements android.os.Parcelable {
39+
public static final android.os.Parcelable$Creator *;
40+
}

project.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Project target.
11+
target=android-17

res/drawable-hdpi/ic_launcher.png

4.05 KB
Loading

res/drawable-ldpi/ic_launcher.png

1.68 KB
Loading

res/drawable-mdpi/ic_launcher.png

2.51 KB
Loading

res/drawable-nodpi/lenna.jpg

19.9 KB
Loading

res/layout/main.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2012 Steven Rudenko
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18+
android:layout_width="fill_parent"
19+
android:layout_height="fill_parent"
20+
android:orientation="vertical" >
21+
22+
<LinearLayout
23+
android:layout_width="fill_parent"
24+
android:layout_height="wrap_content"
25+
android:orientation="horizontal"
26+
android:padding="4dip" >
27+
28+
<Button
29+
android:id="@+id/original"
30+
android:layout_width="0dip"
31+
android:layout_height="wrap_content"
32+
android:layout_weight="1"
33+
android:text="Original" />
34+
35+
<Button
36+
android:id="@+id/bw"
37+
android:layout_width="0dip"
38+
android:layout_height="wrap_content"
39+
android:layout_weight="1"
40+
android:text="B&amp;W" />
41+
42+
<Button
43+
android:id="@+id/sepia"
44+
android:layout_width="0dip"
45+
android:layout_height="wrap_content"
46+
android:layout_weight="1"
47+
android:text="Sepia" />
48+
</LinearLayout>
49+
50+
<ImageView
51+
android:id="@+id/image"
52+
android:layout_width="wrap_content"
53+
android:layout_height="wrap_content"
54+
android:layout_centerInParent="true"
55+
android:src="@drawable/lenna" />
56+
57+
</RelativeLayout>

res/values/strings.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2012 Steven Rudenko
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<resources>
18+
19+
<string name="hello">Hello World, Main!</string>
20+
<string name="app_name">ColorMatrix</string>
21+
22+
</resources>

0 commit comments

Comments
 (0)