diff --git a/AndroidImageIndicator/AndroidManifest.xml b/AndroidImageIndicator/AndroidManifest.xml
index 251f79e..6d86b04 100644
--- a/AndroidImageIndicator/AndroidManifest.xml
+++ b/AndroidImageIndicator/AndroidManifest.xml
@@ -7,26 +7,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/AndroidImageIndicator/project.properties b/AndroidImageIndicator/project.properties
index 66304d5..484dab0 100644
--- a/AndroidImageIndicator/project.properties
+++ b/AndroidImageIndicator/project.properties
@@ -12,4 +12,4 @@
# Project target.
target=android-17
-android.library.reference.1=../../android-app-http/android-app-http
+android.library=true
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/AutoPlayManager.java b/AndroidImageIndicator/src/com/allthelucky/common/view/AutoPlayManager.java
index 6e0088c..fdff4b2 100644
--- a/AndroidImageIndicator/src/com/allthelucky/common/view/AutoPlayManager.java
+++ b/AndroidImageIndicator/src/com/allthelucky/common/view/AutoPlayManager.java
@@ -81,7 +81,7 @@ public class AutoPlayManager {
* 设置自动播放启动时间和间隔
*
* @param startMils
- * 启动时间ms(>5, 默认为8s)
+ * 启动时间ms(>2, 默认为8s)
* @param intevelMils
* 间隔ms(默认为3s)
*/
@@ -122,7 +122,7 @@ public class AutoPlayManager {
protected void handleMessage(android.os.Message msg) {
if (broadcastEnable) {
if (System.currentTimeMillis()
- - mImageIndicatorView.getRefreshTime() < 5 * 1000) {// 最近一次划动间隔小于2s
+ - mImageIndicatorView.getRefreshTime() < 2 * 1000) {// 最近一次划动间隔小于2s
return;
}
if ((broadcastTimes != DEFAULT_TIMES)
diff --git a/AndroidImageIndicatorSample/.classpath b/AndroidImageIndicatorSample/.classpath
new file mode 100644
index 0000000..5176974
--- /dev/null
+++ b/AndroidImageIndicatorSample/.classpath
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/AndroidImageIndicatorSample/.gitignore b/AndroidImageIndicatorSample/.gitignore
new file mode 100644
index 0000000..04e6b04
--- /dev/null
+++ b/AndroidImageIndicatorSample/.gitignore
@@ -0,0 +1,3 @@
+.settings
+bin/
+gen/
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/.project b/AndroidImageIndicatorSample/.project
new file mode 100644
index 0000000..cad61a3
--- /dev/null
+++ b/AndroidImageIndicatorSample/.project
@@ -0,0 +1,33 @@
+
+
+ AndroidImageIndicatorSample
+
+
+
+
+
+ com.android.ide.eclipse.adt.ResourceManagerBuilder
+
+
+
+
+ com.android.ide.eclipse.adt.PreCompilerBuilder
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ com.android.ide.eclipse.adt.ApkBuilder
+
+
+
+
+
+ com.android.ide.eclipse.adt.AndroidNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/AndroidImageIndicatorSample/AndroidManifest.xml b/AndroidImageIndicatorSample/AndroidManifest.xml
new file mode 100644
index 0000000..e531b7d
--- /dev/null
+++ b/AndroidImageIndicatorSample/AndroidManifest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/proguard-project.txt b/AndroidImageIndicatorSample/proguard-project.txt
new file mode 100644
index 0000000..f2fe155
--- /dev/null
+++ b/AndroidImageIndicatorSample/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/AndroidImageIndicatorSample/project.properties b/AndroidImageIndicatorSample/project.properties
new file mode 100644
index 0000000..1f1f149
--- /dev/null
+++ b/AndroidImageIndicatorSample/project.properties
@@ -0,0 +1,15 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-17
+android.library.reference.1=../AndroidImageIndicator
diff --git a/AndroidImageIndicator/res/drawable-hdpi/guide_00.jpg b/AndroidImageIndicatorSample/res/drawable-hdpi/guide_00.jpg
similarity index 100%
rename from AndroidImageIndicator/res/drawable-hdpi/guide_00.jpg
rename to AndroidImageIndicatorSample/res/drawable-hdpi/guide_00.jpg
diff --git a/AndroidImageIndicator/res/drawable-hdpi/guide_01.jpg b/AndroidImageIndicatorSample/res/drawable-hdpi/guide_01.jpg
similarity index 100%
rename from AndroidImageIndicator/res/drawable-hdpi/guide_01.jpg
rename to AndroidImageIndicatorSample/res/drawable-hdpi/guide_01.jpg
diff --git a/AndroidImageIndicatorSample/res/drawable-hdpi/ic_launcher.png b/AndroidImageIndicatorSample/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..8074c4c
Binary files /dev/null and b/AndroidImageIndicatorSample/res/drawable-hdpi/ic_launcher.png differ
diff --git a/AndroidImageIndicator/res/drawable-hdpi/poster1.jpg b/AndroidImageIndicatorSample/res/drawable-hdpi/poster1.jpg
similarity index 100%
rename from AndroidImageIndicator/res/drawable-hdpi/poster1.jpg
rename to AndroidImageIndicatorSample/res/drawable-hdpi/poster1.jpg
diff --git a/AndroidImageIndicator/res/drawable-hdpi/poster2.jpg b/AndroidImageIndicatorSample/res/drawable-hdpi/poster2.jpg
similarity index 100%
rename from AndroidImageIndicator/res/drawable-hdpi/poster2.jpg
rename to AndroidImageIndicatorSample/res/drawable-hdpi/poster2.jpg
diff --git a/AndroidImageIndicator/res/drawable-hdpi/poster3.jpg b/AndroidImageIndicatorSample/res/drawable-hdpi/poster3.jpg
similarity index 100%
rename from AndroidImageIndicator/res/drawable-hdpi/poster3.jpg
rename to AndroidImageIndicatorSample/res/drawable-hdpi/poster3.jpg
diff --git a/AndroidImageIndicatorSample/res/drawable-ldpi/ic_launcher.png b/AndroidImageIndicatorSample/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..1095584
Binary files /dev/null and b/AndroidImageIndicatorSample/res/drawable-ldpi/ic_launcher.png differ
diff --git a/AndroidImageIndicatorSample/res/drawable-mdpi/ic_launcher.png b/AndroidImageIndicatorSample/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..a07c69f
Binary files /dev/null and b/AndroidImageIndicatorSample/res/drawable-mdpi/ic_launcher.png differ
diff --git a/AndroidImageIndicator/res/layout/activity_indicator.xml b/AndroidImageIndicatorSample/res/layout/activity_indicator.xml
similarity index 93%
rename from AndroidImageIndicator/res/layout/activity_indicator.xml
rename to AndroidImageIndicatorSample/res/layout/activity_indicator.xml
index f326e09..1cce31f 100644
--- a/AndroidImageIndicator/res/layout/activity_indicator.xml
+++ b/AndroidImageIndicatorSample/res/layout/activity_indicator.xml
@@ -1,12 +1,12 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicator/res/layout/activity_indicator_auto.xml b/AndroidImageIndicatorSample/res/layout/activity_indicator_auto.xml
similarity index 93%
rename from AndroidImageIndicator/res/layout/activity_indicator_auto.xml
rename to AndroidImageIndicatorSample/res/layout/activity_indicator_auto.xml
index 6493e92..556a352 100644
--- a/AndroidImageIndicator/res/layout/activity_indicator_auto.xml
+++ b/AndroidImageIndicatorSample/res/layout/activity_indicator_auto.xml
@@ -1,11 +1,11 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicator/res/layout/activity_indicator_guide.xml b/AndroidImageIndicatorSample/res/layout/activity_indicator_guide.xml
similarity index 95%
rename from AndroidImageIndicator/res/layout/activity_indicator_guide.xml
rename to AndroidImageIndicatorSample/res/layout/activity_indicator_guide.xml
index c856dd6..cf16184 100644
--- a/AndroidImageIndicator/res/layout/activity_indicator_guide.xml
+++ b/AndroidImageIndicatorSample/res/layout/activity_indicator_guide.xml
@@ -1,21 +1,21 @@
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/res/layout/activity_indicator_network.xml b/AndroidImageIndicatorSample/res/layout/activity_indicator_network.xml
new file mode 100644
index 0000000..aae1518
--- /dev/null
+++ b/AndroidImageIndicatorSample/res/layout/activity_indicator_network.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicator/res/layout/activity_main.xml b/AndroidImageIndicatorSample/res/layout/activity_main.xml
similarity index 79%
rename from AndroidImageIndicator/res/layout/activity_main.xml
rename to AndroidImageIndicatorSample/res/layout/activity_main.xml
index f08c4fa..a6fb647 100644
--- a/AndroidImageIndicator/res/layout/activity_main.xml
+++ b/AndroidImageIndicatorSample/res/layout/activity_main.xml
@@ -1,28 +1,34 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/res/values/dimens.xml b/AndroidImageIndicatorSample/res/values/dimens.xml
new file mode 100644
index 0000000..a6dd140
--- /dev/null
+++ b/AndroidImageIndicatorSample/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+
+ 16dp
+ 16dp
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/res/values/strings.xml b/AndroidImageIndicatorSample/res/values/strings.xml
new file mode 100644
index 0000000..3d00f54
--- /dev/null
+++ b/AndroidImageIndicatorSample/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+
+
+ AndroidImageIndicatorSample
+ Settings
+ Hello world!
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/res/values/styles.xml b/AndroidImageIndicatorSample/res/values/styles.xml
new file mode 100644
index 0000000..4a10ca4
--- /dev/null
+++ b/AndroidImageIndicatorSample/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndroidImageIndicatorSample/screenshot/guider_00.jpg b/AndroidImageIndicatorSample/screenshot/guider_00.jpg
new file mode 100644
index 0000000..c112861
Binary files /dev/null and b/AndroidImageIndicatorSample/screenshot/guider_00.jpg differ
diff --git a/AndroidImageIndicatorSample/screenshot/guider_01.jpg b/AndroidImageIndicatorSample/screenshot/guider_01.jpg
new file mode 100644
index 0000000..eb4a5d1
Binary files /dev/null and b/AndroidImageIndicatorSample/screenshot/guider_01.jpg differ
diff --git a/AndroidImageIndicatorSample/screenshot/poster0.jpg b/AndroidImageIndicatorSample/screenshot/poster0.jpg
new file mode 100644
index 0000000..17295ec
Binary files /dev/null and b/AndroidImageIndicatorSample/screenshot/poster0.jpg differ
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java
similarity index 93%
rename from AndroidImageIndicator/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java
rename to AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java
index 497792f..175c6d2 100644
--- a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java
+++ b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/AutoImageIndicatorActivity.java
@@ -5,7 +5,6 @@ import android.os.Bundle;
import com.allthelucky.common.view.AutoPlayManager;
import com.allthelucky.common.view.ImageIndicatorView;
-import com.app.library.common.view.R;
public class AutoImageIndicatorActivity extends Activity {
private ImageIndicatorView autoImageIndicatorView;
@@ -41,7 +40,7 @@ public class AutoImageIndicatorActivity extends Activity {
AutoPlayManager autoBrocastManager = new AutoPlayManager(this.autoImageIndicatorView);
autoBrocastManager.setBroadcastEnable(true);
autoBrocastManager.setBroadCastTimes(5);//循环播放5次
- autoBrocastManager.setBroadcastTimeIntevel(5 * 1000, 3 * 1000);//播放启动时间及间隔
+ autoBrocastManager.setBroadcastTimeIntevel(3 * 1000, 3 * 1000);//播放启动时间及间隔
autoBrocastManager.loop();
}
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java
similarity index 94%
rename from AndroidImageIndicator/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java
rename to AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java
index 569199c..405202e 100644
--- a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java
+++ b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/GuideImageIndicatorActivity.java
@@ -1,54 +1,53 @@
-package com.allthelucky.common.view.sample;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.Toast;
-
-import com.allthelucky.common.view.ImageIndicatorView;
-import com.app.library.common.view.R;
-
-public class GuideImageIndicatorActivity extends Activity implements View.OnClickListener,
- ImageIndicatorView.OnItemChangeListener {
- private ImageIndicatorView imageIndicatorView;
- private Button goButton;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_indicator_guide);
-
- this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.guide_indicate_view);
- this.goButton = (Button) findViewById(R.id.button1);
- this.goButton.setVisibility(View.GONE);
-
- this.imageIndicatorView.setOnItemChangeListener(this);
- this.goButton.setOnClickListener(this);
-
- this.initView();
- }
-
- @Override
- public void onPosition(int position, int totalCount) {
- if (position == totalCount - 1) {
- goButton.setVisibility(View.VISIBLE);
- } else {
- goButton.setVisibility(View.GONE);
- }
- }
-
- @Override
- public void onClick(View view) {
- Toast.makeText(GuideImageIndicatorActivity.this, "let's roll...", Toast.LENGTH_SHORT).show();
- GuideImageIndicatorActivity.this.finish();
- }
-
- private void initView() {
- final Integer[] resArray = new Integer[] { R.drawable.guide_00, R.drawable.guide_01 };
- this.imageIndicatorView.setupLayoutByDrawable(resArray);
- this.imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE);
- this.imageIndicatorView.show();
- }
-
-}
+package com.allthelucky.common.view.sample;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.Toast;
+
+import com.allthelucky.common.view.ImageIndicatorView;
+
+public class GuideImageIndicatorActivity extends Activity implements View.OnClickListener,
+ ImageIndicatorView.OnItemChangeListener {
+ private ImageIndicatorView imageIndicatorView;
+ private Button goButton;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_indicator_guide);
+
+ this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.guide_indicate_view);
+ this.goButton = (Button) findViewById(R.id.button1);
+ this.goButton.setVisibility(View.GONE);
+
+ this.imageIndicatorView.setOnItemChangeListener(this);
+ this.goButton.setOnClickListener(this);
+
+ this.initView();
+ }
+
+ @Override
+ public void onPosition(int position, int totalCount) {
+ if (position == totalCount - 1) {
+ goButton.setVisibility(View.VISIBLE);
+ } else {
+ goButton.setVisibility(View.GONE);
+ }
+ }
+
+ @Override
+ public void onClick(View view) {
+ Toast.makeText(GuideImageIndicatorActivity.this, "let's roll...", Toast.LENGTH_SHORT).show();
+ GuideImageIndicatorActivity.this.finish();
+ }
+
+ private void initView() {
+ final Integer[] resArray = new Integer[] { R.drawable.guide_00, R.drawable.guide_01 };
+ this.imageIndicatorView.setupLayoutByDrawable(resArray);
+ this.imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE);
+ this.imageIndicatorView.show();
+ }
+
+}
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java
similarity index 93%
rename from AndroidImageIndicator/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java
rename to AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java
index 895e918..cc2aecd 100644
--- a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java
+++ b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/ImageIndicatorActivity.java
@@ -1,39 +1,38 @@
-package com.allthelucky.common.view.sample;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-import com.allthelucky.common.view.ImageIndicatorView;
-import com.app.library.common.view.R;
-
-public class ImageIndicatorActivity extends Activity {
- private ImageIndicatorView imageIndicatorView;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_indicator);
-
- this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.indicate_view);
- this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
- @Override
- public void onPosition(int position, int totalCount) {
-
- }
- });
- this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
- @Override
- public void onPosition(int position, int totalCount) {
-
- }
- });
-
- this.initView();
- }
-
- private void initView() {
- final Integer[] resArray = new Integer[] { R.drawable.poster1, R.drawable.poster2, R.drawable.poster3 };
- this.imageIndicatorView.setupLayoutByDrawable(resArray);
- this.imageIndicatorView.show();
- }
-}
+package com.allthelucky.common.view.sample;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+import com.allthelucky.common.view.ImageIndicatorView;
+
+public class ImageIndicatorActivity extends Activity {
+ private ImageIndicatorView imageIndicatorView;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_indicator);
+
+ this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.indicate_view);
+ this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
+ @Override
+ public void onPosition(int position, int totalCount) {
+
+ }
+ });
+ this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
+ @Override
+ public void onPosition(int position, int totalCount) {
+
+ }
+ });
+
+ this.initView();
+ }
+
+ private void initView() {
+ final Integer[] resArray = new Integer[] { R.drawable.poster1, R.drawable.poster2, R.drawable.poster3 };
+ this.imageIndicatorView.setupLayoutByDrawable(resArray);
+ this.imageIndicatorView.show();
+ }
+}
diff --git a/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/NetworkImageIndicatorActivity.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/NetworkImageIndicatorActivity.java
new file mode 100644
index 0000000..b0879d9
--- /dev/null
+++ b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/NetworkImageIndicatorActivity.java
@@ -0,0 +1,45 @@
+package com.allthelucky.common.view.sample;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+import com.allthelucky.common.view.ImageIndicatorView;
+import com.allthelucky.common.view.network.NetworkImageIndicatorView;
+
+public class NetworkImageIndicatorActivity extends Activity {
+ private NetworkImageIndicatorView imageIndicatorView;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_indicator_network);
+
+ this.imageIndicatorView = (NetworkImageIndicatorView) findViewById(R.id.indicate_view);
+ this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
+ @Override
+ public void onPosition(int position, int totalCount) {
+
+ }
+ });
+ this.imageIndicatorView.setOnItemChangeListener(new ImageIndicatorView.OnItemChangeListener() {
+ @Override
+ public void onPosition(int position, int totalCount) {
+
+ }
+ });
+
+ this.initView();
+ }
+
+ private void initView() {
+ List urlList= new ArrayList();
+ urlList.add("https://camo.githubusercontent.com/89e5d1cbd313c8611aaac6040fc4be873818ac12/68747470733a2f2f7261772e6769746875622e636f6d2f77696e6669726d2f616e64726f69642d696d6167652d696e64696361746f722f6d61737465722f416e64726f6964496d616765496e64696361746f722f73637265656e73686f742f6775696465725f30302e6a7067");
+ urlList.add("https://camo.githubusercontent.com/929483245f2f66ad7a6fd3bb7396049780446199/68747470733a2f2f7261772e6769746875622e636f6d2f77696e6669726d2f616e64726f69642d696d6167652d696e64696361746f722f6d61737465722f416e64726f6964496d616765496e64696361746f722f73637265656e73686f742f6775696465725f30312e6a7067");
+
+ this.imageIndicatorView.setupLayoutByImageUrl(urlList);
+ this.imageIndicatorView.show();
+ }
+}
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/SampleActivity.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/SampleActivity.java
similarity index 87%
rename from AndroidImageIndicator/src/com/allthelucky/common/view/sample/SampleActivity.java
rename to AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/SampleActivity.java
index 5463798..cfd96f0 100644
--- a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/SampleActivity.java
+++ b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/SampleActivity.java
@@ -1,34 +1,35 @@
-package com.allthelucky.common.view.sample;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.view.View;
-import android.view.View.OnClickListener;
-
-import com.app.library.common.view.R;
-
-public class SampleActivity extends Activity implements OnClickListener {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
-
- findViewById(R.id.button1).setOnClickListener(this);
- findViewById(R.id.button2).setOnClickListener(this);
- findViewById(R.id.button3).setOnClickListener(this);
- }
-
- @Override
- public void onClick(View v) {
- final int resId = v.getId();
- if (resId == R.id.button1) {
- startActivity(new Intent(this, ImageIndicatorActivity.class));
- } else if (resId == R.id.button2) {
- startActivity(new Intent(this, AutoImageIndicatorActivity.class));
- } else if (resId == R.id.button3) {
- startActivity(new Intent(this, GuideImageIndicatorActivity.class));
- }
- }
-}
+package com.allthelucky.common.view.sample;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.view.View.OnClickListener;
+
+public class SampleActivity extends Activity implements OnClickListener {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ findViewById(R.id.button1).setOnClickListener(this);
+ findViewById(R.id.button2).setOnClickListener(this);
+ findViewById(R.id.button3).setOnClickListener(this);
+ findViewById(R.id.button4).setOnClickListener(this);
+ }
+
+ @Override
+ public void onClick(View v) {
+ final int resId = v.getId();
+ if (resId == R.id.button1) {
+ startActivity(new Intent(this, ImageIndicatorActivity.class));
+ } else if (resId == R.id.button2) {
+ startActivity(new Intent(this, AutoImageIndicatorActivity.class));
+ } else if (resId == R.id.button3) {
+ startActivity(new Intent(this, GuideImageIndicatorActivity.class));
+ }else {
+ startActivity(new Intent(this, NetworkImageIndicatorActivity.class));
+ }
+ }
+}
diff --git a/AndroidImageIndicator/src/com/allthelucky/common/view/sample/SampleApp.java b/AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/SampleApp.java
similarity index 100%
rename from AndroidImageIndicator/src/com/allthelucky/common/view/sample/SampleApp.java
rename to AndroidImageIndicatorSample/src/com/allthelucky/common/view/sample/SampleApp.java