-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
android-image-indicator | ||
======================= | ||
|
||
Android image indicator for advertise and user guide(network image support). | ||
|
||
####1、Advertise mode(auto play if need) | ||
in layout file: | ||
|
||
<com.allthelucky.common.view.ImageIndicatorView | ||
android:id="@+id/indicate_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="160dp" /> | ||
in java setting: | ||
|
||
imageIndicatorView = (ImageIndicatorView) findViewById(R.id.indicate_view); | ||
final Integer[] resArray = new Integer[] { R.drawable.ic_launcher, R.drawable.ic_launcher }; | ||
imageIndicatorView.setupLayoutByDrawable(resArray); | ||
imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_ARROW_ROUND_STYLE); | ||
imageIndicatorView.show(); | ||
|
||
set auto play if need: | ||
|
||
AutoPlayManager autoBrocastManager = new AutoPlayManager(imageIndicatorView); | ||
autoBrocastManager.setBroadcastEnable(true); | ||
autoBrocastManager.setBroadCastTimes(5);//loop times | ||
autoBrocastManager.setBroadcastTimeIntevel(3 * 1000, 3 * 1000);//set first play time and interval | ||
autoBrocastManager.loop(); | ||
|
||
![ScreenShot](https://raw.github.com/panxw/android-image-indicator/master/screenshot/poster0.jpg) | ||
|
||
####2、User guide mode | ||
|
||
this.imageIndicatorView = (ImageIndicatorView) findViewById(R.id.guide_indicate_view); | ||
final Integer[] resArray = new Integer[] { R.drawable.ic_launcher, R.drawable.ic_launcher }; | ||
imageIndicatorView.setupLayoutByDrawable(resArray); | ||
imageIndicatorView.setIndicateStyle(ImageIndicatorView.INDICATE_USERGUIDE_STYLE); | ||
imageIndicatorView.show(); | ||
|
||
![ScreenShot](https://raw.github.com/panxw/android-image-indicator/master/screenshot/guider_00.jpg) | ||
![ScreenShot](https://raw.github.com/panxw/android-image-indicator/master/screenshot/guider_01.jpg) | ||
|
||
####3、NetworkImageIndicatorView(image from network) | ||
|
||
layout file: | ||
|
||
<com.allthelucky.common.view.network.NetworkImageIndicatorView | ||
android:id="@+id/network_indicate_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="160dp" /> | ||
|
||
in java setting: | ||
|
||
final List<String> urlList= new ArrayList<String>(); | ||
urlList.add("https://github.com/panxw/android-image-indicator/blob/master/screenshot/guider_00.jpg"); | ||
urlList.add("https://github.com/panxw/android-image-indicator/blob/master/screenshot/guider_01.jpg"); | ||
imageIndicatorView = (ImageIndicatorView) findViewById(R.id.network_indicate_view); | ||
imageIndicatorView.setupLayoutByImageUrl(urlList); | ||
imageIndicatorView.show(); | ||
|
||
set auto play if need: | ||
|
||
AutoPlayManager autoBrocastManager = new AutoPlayManager(imageIndicatorView); | ||
autoBrocastManager.setBroadcastEnable(true); | ||
autoBrocastManager.setBroadCastTimes(5);//loop times | ||
autoBrocastManager.setBroadcastTimeIntevel(3 * 1000, 3 * 1000);//set first play time and interval | ||
autoBrocastManager.loop(); | ||
|
||
|
||
## License | ||
|
||
Copyright (C) 2011 The Android Open Source Project | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module external.linked.project.id="android-image-indicator" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> | ||
<component name="FacetManager"> | ||
<facet type="java-gradle" name="Java-Gradle"> | ||
<configuration> | ||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" /> | ||
<option name="BUILDABLE" value="false" /> | ||
</configuration> | ||
</facet> | ||
</component> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<excludeFolder url="file://$MODULE_DIR$/.gradle" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:1.3.0' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Project-wide Gradle settings. | ||
|
||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
sonatypeRepo=null | ||
sonatypeUsername=null | ||
sonatypePassword=null | ||
|
||
libraryDescription = Android image indicator easy to use! | ||
|
||
siteUrl = https://github.com/panxw/android-image-indicator | ||
gitUrl = https://github.com/panxw/android-image-indicator.git | ||
|
||
# maven.gradle use | ||
|
||
publishedGroupId = com.panxw.imageindicator | ||
artifact = library | ||
|
||
libraryName = android-image-indicator | ||
|
||
licenseName = The Apache Software License, Version 2.0 | ||
licenseUrl = http://www.apache.org/licenses/LICENSE-2.0.txt | ||
|
||
developerId = panxw | ||
developerName = pan | ||
developerEmail = [email protected] | ||
|
||
# bintray.gradle use | ||
libraryVersion = 1.0.0 | ||
|
||
licenseLabel = ["Apache-2.0"] | ||
|
||
bintrayRepo = maven | ||
bintrayName = android-image-indicator |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Wed Oct 28 23:31:50 CST 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip |