Skip to content

Commit f1aa39f

Browse files
committed
Update 1.0.0
1 parent 1c796d5 commit f1aa39f

File tree

6 files changed

+190
-7
lines changed

6 files changed

+190
-7
lines changed

README.md

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
SlideImageView
2+
===================
3+
Simple and convenient library that allows you to slide images through a view.
4+
5+
![enter image description here](https://lh3.googleusercontent.com/-bzGxaA_Oyk4/VR-miVWxGrI/AAAAAAAAAZE/tuTVk2dcRyQ/s0/Untitled-4.png "logo_title.png")
6+
7+
U can check the sample app [here](https://github.com/GIGAMOLE/SlideImageView/tree/master/app).
8+
9+
Download
10+
------------
11+
12+
You can download a .jar from GitHub's [releases page](https://github.com/GIGAMOLE/SlideImageView/releases).
13+
14+
Or use Gradle jCenter:
15+
16+
dependencies {
17+
repositories {
18+
mavenCentral()
19+
maven {
20+
url 'http://dl.bintray.com/gigamole/maven/'
21+
}
22+
}
23+
compile 'com.github.gigamole.slideimageview:library:+'
24+
}
25+
26+
Or Gradle Maven Central:
27+
28+
compile 'com.github.gigamole.slideimageview:library:1.0.0'
29+
30+
Or Maven:
31+
32+
<dependency>
33+
<groupId>com.github.gigamole.slideimageview</groupId>
34+
<artifactId>library</artifactId>
35+
<version>1.0.0</version>
36+
<type>aar</type>
37+
</dependency>
38+
39+
Android SDK Version
40+
=========
41+
SlideImageView requires a minimum sdk version of 10.
42+
43+
Sample
44+
========
45+
46+
You can set such parameters as:
47+
48+
- source
49+
- duration
50+
- slowdown
51+
52+
Check out in code init:
53+
54+
SlideImageView slidedImageView = (SlideImageView) findViewById(R.id.img_slide);
55+
slidedImageView.setDuration(50000);
56+
slidedImageView.setSource(R.drawable.background);
57+
slidedImageView.setSlowdown(false);
58+
59+
And XML init:
60+
61+
<com.gigamole.slideimageview.lib.SlideImageView
62+
android:id="@+id/img_slide"
63+
android:layout_width="match_parent"
64+
android:layout_height="match_parent"
65+
slide:source="@drawable/background"
66+
slide:duration="50000"
67+
slide:slowdown="false"/>
68+
69+
Getting Help
70+
======
71+
72+
To report a specific problem or feature request, [open a new issue on Github](https://github.com/GIGAMOLE/Mill-Spinners/issues/new).
73+
74+
License
75+
======
76+
Apache 2.0. See LICENSE file for details.
77+
78+
79+
Author
80+
=======
81+
Basil Miller - @gigamole

app/app.iml

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
8787
<orderEntry type="sourceFolder" forTests="false" />
8888
<orderEntry type="library" exported="" name="appcompat-v7-22.0.0" level="project" />
89+
<orderEntry type="library" exported="" name="jsoup-1.8.1" level="project" />
8990
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
9091
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
9192
<orderEntry type="module" module-name="library" exported="" />
247 KB
Loading

app/src/main/res/layout/activity_main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ limitations under the License.
3434
android:layout_centerVertical="true"
3535
android:adjustViewBounds="true"
3636
android:alpha="0.75"
37-
android:padding="75dp"
37+
android:padding="100dp"
3838
android:src="@drawable/logo" />
3939

4040
</RelativeLayout>

library/build.gradle

+101-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: "com.jfrog.bintray"
4+
5+
version = "1.0.0"
26

37
android {
4-
compileSdkVersion 22
5-
buildToolsVersion "22.0.1"
8+
compileSdkVersion 21
9+
buildToolsVersion "21.0.1"
610

711
defaultConfig {
812
minSdkVersion 10
9-
targetSdkVersion 22
13+
targetSdkVersion 21
1014
versionCode 1
11-
versionName "1.0"
15+
versionName "1.0.0"
1216
}
1317
buildTypes {
1418
release {
@@ -21,4 +25,97 @@ android {
2125
dependencies {
2226
compile fileTree(dir: 'libs', include: ['*.jar'])
2327
compile 'com.android.support:appcompat-v7:22.0.0'
28+
compile 'org.jsoup:jsoup:1.8.1'
29+
}
30+
31+
def siteUrl = 'https://github.com/GIGAMOLE/SlideImageView'
32+
def gitUrl = 'https://github.com/GIGAMOLE/SlideImageView.git'
33+
group = "com.github.gigamole.slideimageview"
34+
35+
install {
36+
repositories.mavenInstaller {
37+
// This generates POM.xml with proper parameters
38+
pom {
39+
project {
40+
packaging 'aar'
41+
42+
// Add your description here
43+
name 'SlideImageView'
44+
description = 'Simple and convenient library that allows you to slide images through a view.'
45+
url siteUrl
46+
47+
// Set your license
48+
licenses {
49+
license {
50+
name 'The Apache Software License, Version 2.0'
51+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
52+
}
53+
}
54+
developers {
55+
developer {
56+
id 'gigamole'
57+
name 'Basil Miller'
58+
email 'gigamole53@gmail.com'
59+
}
60+
}
61+
scm {
62+
connection gitUrl
63+
developerConnection gitUrl
64+
url siteUrl
65+
66+
}
67+
}
68+
}
69+
}
70+
}
71+
72+
73+
task sourcesJar(type: Jar) {
74+
from android.sourceSets.main.java.srcDirs
75+
classifier = 'sources'
76+
}
77+
78+
task javadoc(type: Javadoc) {
79+
source = android.sourceSets.main.java.srcDirs
80+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
81+
}
82+
83+
task javadocJar(type: Jar, dependsOn: javadoc) {
84+
classifier = 'javadoc'
85+
from javadoc.destinationDir
86+
}
87+
artifacts {
88+
archives javadocJar
89+
archives sourcesJar
2490
}
91+
92+
Properties properties = new Properties()
93+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
94+
95+
bintray {
96+
user = properties.getProperty("bintray.user")
97+
key = properties.getProperty("bintray.apikey")
98+
99+
configurations = ['archives']
100+
pkg {
101+
repo = "maven"
102+
// it is the name that appears in bintray when logged
103+
name = "slideimageview"
104+
websiteUrl = siteUrl
105+
vcsUrl = gitUrl
106+
licenses = ["Apache-2.0"]
107+
publish = true
108+
version {
109+
gpg {
110+
sign = true //Determines whether to GPG sign the files. The default is false
111+
passphrase = properties.getProperty("bintray.gpg.password") //Optional. The passphrase for GPG signing'
112+
}
113+
// mavenCentralSync {
114+
// sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
115+
// user = properties.getProperty("bintray.oss.user") //OSS user token
116+
// password = properties.getProperty("bintray.oss.password") //OSS user password
117+
// close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
118+
// }
119+
}
120+
}
121+
}

library/library.iml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="SlideImageView" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.gigamole.slideimageview" external.system.module.version="1.0.0" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>
@@ -62,6 +62,7 @@
6262
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
6363
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
6464
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
65+
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
6566
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
6667
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
6768
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
@@ -81,12 +82,15 @@
8182
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
8283
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
8384
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
85+
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
8486
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
87+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
8588
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
8689
</content>
87-
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
90+
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
8891
<orderEntry type="sourceFolder" forTests="false" />
8992
<orderEntry type="library" exported="" name="appcompat-v7-22.0.0" level="project" />
93+
<orderEntry type="library" exported="" name="jsoup-1.8.1" level="project" />
9094
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
9195
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
9296
</component>

0 commit comments

Comments
 (0)