Skip to content

Commit 7ef0d6d

Browse files
committed
initial import
1 parent 0269059 commit 7ef0d6d

File tree

13 files changed

+351
-0
lines changed

13 files changed

+351
-0
lines changed

AndroidManifest.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="fr.castorflex.android.flipimageview"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
7+
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" />
8+
<application
9+
android:label="@string/app_name"
10+
android:icon="@drawable/ic_launcher">
11+
<activity
12+
android:name=".sample.SampleActivity"
13+
android:label="@string/app_name">
14+
<intent-filter>
15+
<action android:name="android.intent.action.MAIN" />
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
</application>
20+
</manifest>

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FlipImageView
2+
==================
3+
4+
Description
5+
-----------
6+
Small android lib allowing you to make a flip imageview easily, by extending FlipImageView.
7+
8+
This lib is based on the FlipAnimator by coomar. All the credits go to him.
9+
10+
License
11+
-------
12+
13+
```
14+
"THE BEER-WARE LICENSE" (Revision 42):
15+
You can do whatever you want with this stuff.
16+
If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.
17+
```

project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=Google Inc.:Google APIs:15

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
1.46 KB
Loading
1.07 KB
Loading

res/layout/main.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:app="http://schemas.android.com/apk/res/fr.castorflex.android.flipimageview"
5+
android:orientation="vertical"
6+
android:layout_width="fill_parent"
7+
android:layout_height="fill_parent"
8+
android:gravity="center">
9+
10+
<TextView
11+
android:id="@+id/textview"
12+
android:layout_width="wrap_content"
13+
android:layout_height="wrap_content"/>
14+
15+
<fr.castorflex.android.flipimageview.library.FlipImageView
16+
android:id="@+id/imageview"
17+
android:layout_width="match_parent"
18+
android:layout_height="match_parent"
19+
android:scaleType="center"
20+
android:layout_gravity="center"
21+
android:src="@drawable/ic_action_star_0"
22+
app:flipDrawable="@drawable/ic_action_star_10"/>
23+
24+
</LinearLayout>
25+

res/values/attrs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<declare-styleable name="FlipImageView">
4+
<attr name="isAnimated" format="boolean"/>
5+
<attr name="isFlipped" format="boolean"/>
6+
<attr name="flipDrawable" format="reference"/>
7+
</declare-styleable>
8+
9+
10+
</resources>

0 commit comments

Comments
 (0)