├── ImageSwitch
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── bin
│ ├── AndroidManifest.xml
│ ├── ImageSwitch.apk
│ ├── R.txt
│ ├── classes.dex
│ ├── classes
│ │ └── com
│ │ │ └── liucanwen
│ │ │ └── imageswitch
│ │ │ ├── BuildConfig.class
│ │ │ ├── ImageSwitchUtil.class
│ │ │ ├── MultiImageActivity.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$dimen.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$menu.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ └── R.class
│ ├── dexedLibs
│ │ ├── KenBurnsView-7a58fc1787d69dc6ff7960f2df6454b0.jar
│ │ ├── android-support-v4-cb678b5c7825876b0a08ec2af7b02615.jar
│ │ ├── main-3adf243c74478c2cd2e8031df1a736e9.jar
│ │ └── picasso-2.3.2-90335715cf98b43157bd9a762ee7e4c9.jar
│ ├── jarlist.cache
│ ├── res
│ │ └── crunch
│ │ │ ├── drawable-hdpi
│ │ │ ├── empty_photo.png
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ └── resources.ap_
├── gen
│ └── com
│ │ └── liucanwen
│ │ └── imageswitch
│ │ ├── BuildConfig.java
│ │ └── R.java
├── ic_launcher-web.png
├── libs
│ ├── KenBurnsView.jar
│ ├── android-support-v4.jar
│ └── picasso-2.3.2.jar
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ ├── empty_photo.png
│ │ ├── ic_launcher.png
│ │ ├── img1.jpg
│ │ └── img2.jpg
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── layout
│ │ ├── activity_main.xml
│ │ └── multi_image.xml
│ ├── menu
│ │ └── main.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ └── values
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
└── src
│ └── com
│ └── liucanwen
│ └── imageswitch
│ ├── ImageSwitchUtil.java
│ └── MultiImageActivity.java
├── KenBurnsView.jar
├── README.md
├── imageswitch.gif
├── screenshot1.jpg
└── screenshot2.jpg
/ImageSwitch/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ImageSwitch/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | ImageSwitch
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/ImageSwitch/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/ImageSwitch/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/ImageSwitch/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
20 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/ImageSwitch/bin/ImageSwitch.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/ImageSwitch.apk
--------------------------------------------------------------------------------
/ImageSwitch/bin/R.txt:
--------------------------------------------------------------------------------
1 | int dimen activity_horizontal_margin 0x7f040000
2 | int dimen activity_vertical_margin 0x7f040001
3 | int drawable empty_photo 0x7f020000
4 | int drawable ic_launcher 0x7f020001
5 | int drawable img1 0x7f020002
6 | int drawable img2 0x7f020003
7 | int id action_settings 0x7f080001
8 | int id viewSwitcher 0x7f080000
9 | int layout activity_main 0x7f030000
10 | int layout multi_image 0x7f030001
11 | int menu main 0x7f070000
12 | int string action_settings 0x7f050001
13 | int string app_name 0x7f050000
14 | int string hello_world 0x7f050002
15 | int style AppBaseTheme 0x7f060000
16 | int style AppTheme 0x7f060001
17 |
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes.dex
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/BuildConfig.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/ImageSwitchUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/ImageSwitchUtil.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/MultiImageActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/MultiImageActivity.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$attr.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$dimen.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$dimen.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$drawable.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$id.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$layout.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$menu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$menu.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$string.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R$style.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/classes/com/liucanwen/imageswitch/R.class
--------------------------------------------------------------------------------
/ImageSwitch/bin/dexedLibs/KenBurnsView-7a58fc1787d69dc6ff7960f2df6454b0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/dexedLibs/KenBurnsView-7a58fc1787d69dc6ff7960f2df6454b0.jar
--------------------------------------------------------------------------------
/ImageSwitch/bin/dexedLibs/android-support-v4-cb678b5c7825876b0a08ec2af7b02615.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/dexedLibs/android-support-v4-cb678b5c7825876b0a08ec2af7b02615.jar
--------------------------------------------------------------------------------
/ImageSwitch/bin/dexedLibs/main-3adf243c74478c2cd2e8031df1a736e9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/dexedLibs/main-3adf243c74478c2cd2e8031df1a736e9.jar
--------------------------------------------------------------------------------
/ImageSwitch/bin/dexedLibs/picasso-2.3.2-90335715cf98b43157bd9a762ee7e4c9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/dexedLibs/picasso-2.3.2-90335715cf98b43157bd9a762ee7e4c9.jar
--------------------------------------------------------------------------------
/ImageSwitch/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependency. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/ImageSwitch/bin/res/crunch/drawable-hdpi/empty_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/res/crunch/drawable-hdpi/empty_photo.png
--------------------------------------------------------------------------------
/ImageSwitch/bin/res/crunch/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/res/crunch/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/bin/res/crunch/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/res/crunch/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/bin/res/crunch/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/res/crunch/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/bin/res/crunch/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/bin/resources.ap_
--------------------------------------------------------------------------------
/ImageSwitch/gen/com/liucanwen/imageswitch/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package com.liucanwen.imageswitch;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/ImageSwitch/gen/com/liucanwen/imageswitch/R.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package com.liucanwen.imageswitch;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class dimen {
14 | /** Default screen margins, per the Android Design guidelines.
15 |
16 | Customize dimensions originally defined in res/values/dimens.xml (such as
17 | screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
18 |
19 | */
20 | public static final int activity_horizontal_margin=0x7f040000;
21 | public static final int activity_vertical_margin=0x7f040001;
22 | }
23 | public static final class drawable {
24 | public static final int empty_photo=0x7f020000;
25 | public static final int ic_launcher=0x7f020001;
26 | public static final int img1=0x7f020002;
27 | public static final int img2=0x7f020003;
28 | }
29 | public static final class id {
30 | public static final int action_settings=0x7f080001;
31 | public static final int viewSwitcher=0x7f080000;
32 | }
33 | public static final class layout {
34 | public static final int activity_main=0x7f030000;
35 | public static final int multi_image=0x7f030001;
36 | }
37 | public static final class menu {
38 | public static final int main=0x7f070000;
39 | }
40 | public static final class string {
41 | public static final int action_settings=0x7f050001;
42 | public static final int app_name=0x7f050000;
43 | public static final int hello_world=0x7f050002;
44 | }
45 | public static final class style {
46 | /**
47 | Base application theme, dependent on API level. This theme is replaced
48 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
49 |
50 |
51 | Theme customizations available in newer API levels can go in
52 | res/values-vXX/styles.xml, while customizations related to
53 | backward-compatibility can go here.
54 |
55 |
56 | Base application theme for API 11+. This theme completely replaces
57 | AppBaseTheme from res/values/styles.xml on API 11+ devices.
58 |
59 | API 11 theme customizations can go here.
60 |
61 | Base application theme for API 14+. This theme completely replaces
62 | AppBaseTheme from BOTH res/values/styles.xml and
63 | res/values-v11/styles.xml on API 14+ devices.
64 |
65 | API 14 theme customizations can go here.
66 | */
67 | public static final int AppBaseTheme=0x7f060000;
68 | /** Application theme.
69 | All customizations that are NOT specific to a particular API-level can go here.
70 | */
71 | public static final int AppTheme=0x7f060001;
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/ImageSwitch/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/ic_launcher-web.png
--------------------------------------------------------------------------------
/ImageSwitch/libs/KenBurnsView.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/libs/KenBurnsView.jar
--------------------------------------------------------------------------------
/ImageSwitch/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/ImageSwitch/libs/picasso-2.3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/libs/picasso-2.3.2.jar
--------------------------------------------------------------------------------
/ImageSwitch/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/ImageSwitch/project.properties:
--------------------------------------------------------------------------------
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=android-19
15 |
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-hdpi/empty_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-hdpi/empty_photo.png
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-hdpi/img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-hdpi/img1.jpg
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-hdpi/img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-hdpi/img2.jpg
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/ImageSwitch/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ImageSwitch/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ImageSwitch/res/layout/multi_image.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
20 |
21 |
27 |
28 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ImageSwitch/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ImageSwitch
5 | Settings
6 | Hello world!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ImageSwitch/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/ImageSwitch/src/com/liucanwen/imageswitch/ImageSwitchUtil.java:
--------------------------------------------------------------------------------
1 | package com.liucanwen.imageswitch;
2 |
3 | import android.content.Context;
4 | import android.view.View;
5 |
6 | import com.flaviofaria.kenburnsview.KenBurnsView;
7 | import com.squareup.picasso.Picasso;
8 |
9 | public class ImageSwitchUtil {
10 |
11 | public static View loadNetImage(Context cxt, String url)
12 | {
13 | KenBurnsView kbv = new KenBurnsView(cxt);
14 |
15 | loadImage(kbv, url, cxt);
16 |
17 | return kbv;
18 | }
19 |
20 | private static void loadImage(final KenBurnsView image, String url, Context cxt)
21 | {
22 | Picasso.with(cxt).load(url).placeholder(R.drawable.empty_photo).into(image);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ImageSwitch/src/com/liucanwen/imageswitch/MultiImageActivity.java:
--------------------------------------------------------------------------------
1 | package com.liucanwen.imageswitch;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.widget.ViewSwitcher;
6 |
7 | import com.flaviofaria.kenburnsview.KenBurnsView;
8 | import com.flaviofaria.kenburnsview.KenBurnsView.TransitionListener;
9 | import com.flaviofaria.kenburnsview.Transition;
10 |
11 | public class MultiImageActivity extends Activity implements TransitionListener {
12 |
13 | private static final int TRANSITIONS_TO_SWITCH = 2;
14 |
15 | private ViewSwitcher mViewSwitcher;
16 |
17 | private int mTransitionsCount = 0;
18 |
19 | @Override
20 | public void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.multi_image);
23 |
24 | mViewSwitcher = (ViewSwitcher) findViewById(R.id.viewSwitcher);
25 |
26 | addImageViews();
27 | }
28 |
29 | public void addImageViews()
30 | {
31 | for(int i = 0; i < getImages().length; i++)
32 | {
33 | KenBurnsView kbv = (KenBurnsView)ImageSwitchUtil.loadNetImage(MultiImageActivity.this, getImages()[i]);
34 | kbv.setTransitionListener(this);
35 |
36 | mViewSwitcher.addView(kbv);
37 | }
38 | }
39 |
40 | @Override
41 | public void onTransitionStart(Transition transition) {
42 | }
43 |
44 | @Override
45 | public void onTransitionEnd(Transition transition) {
46 | mTransitionsCount++;
47 | if (mTransitionsCount == TRANSITIONS_TO_SWITCH) {
48 | mViewSwitcher.showNext();
49 | mTransitionsCount = 0;
50 | }
51 | }
52 |
53 | public String[] getImages()
54 | {
55 | String url1 = "https://raw.githubusercontent.com/kk-java/ImageSwitch/master/screenshot1.jpg";
56 | String url2 = "https://raw.githubusercontent.com/kk-java/ImageSwitch/master/screenshot2.jpg";
57 |
58 | String[] strs = {url1, url2};
59 |
60 | return strs;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/KenBurnsView.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/KenBurnsView.jar
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## 仿手机QQ个人资料顶部照片移动切换效果,项目加载图片为网络图片
2 | ===================
3 | base on [KenBurnsView][1]
4 |
5 | ## The effect (GIF)
6 | 
7 |
8 |
9 | ## Other
10 | email:liucanwen517@gmail.com
11 |
12 | [1]: https://github.com/flavioarfaria/KenBurnsView
13 |
--------------------------------------------------------------------------------
/imageswitch.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/imageswitch.gif
--------------------------------------------------------------------------------
/screenshot1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/screenshot1.jpg
--------------------------------------------------------------------------------
/screenshot2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kk-java/ImageSwitch/b42bfd23c4f65171f73781a28b27bd17ca5e9051/screenshot2.jpg
--------------------------------------------------------------------------------