Skip to content

Commit

Permalink
Update to the latest library
Browse files Browse the repository at this point in the history
  • Loading branch information
Elisha Lye committed Aug 13, 2018
1 parent 1d87aab commit adf6849
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ Provide both TextView and ImageView the ability to show shimmer (animation loade

7. Setting the Text Style as BOLD would darken the loading shimmer

8. Use a custom shimmer color (note: if set, point 7 will not apply, your color will be used even if the Text Style is BOLD)
8. Other feature of TextView and ImageView is still applicable.

9. Use a custom shimmer color (note: if set, point 7 will not apply, your color will be used even if the Text Style is BOLD)
```xml
<com.elyeproj.loaderviewlibrary.LoaderTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:custom_color="@android:color/holo_green_dark" />
```

9. Other feature of TextView and ImageView is still applicable.

10. Reset and show shimmer (animation loader) again by calling the below API
```java
myLoaderTextView.resetLoader();
Expand Down Expand Up @@ -100,4 +100,4 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use

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.
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.
14 changes: 7 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
applicationId "com.elyeproj.sampleloaderview"
minSdkVersion 15
targetSdkVersion 26
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
Expand All @@ -20,8 +20,8 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile project(':loaderviewlibrary')
compile 'com.android.support:appcompat-v7:26.1.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation project(':loaderviewlibrary')
implementation 'com.android.support:appcompat-v7:27.1.1'
}
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "com.github.dcendents:android-maven-gradle-plugin:1.5"

Expand All @@ -17,9 +18,7 @@ buildscript {
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
google()
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Nov 19 22:41:23 AEDT 2017
#Mon Aug 13 21:45:18 AEST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
12 changes: 6 additions & 6 deletions loaderviewlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ group = 'com.elyeproj.libraries'
version = '1.4.1'

android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
minSdkVersion 15
targetSdkVersion 26
targetSdkVersion 27
versionCode 12
versionName "1.4.1"
}
Expand All @@ -24,9 +24,9 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:26.1.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.1.1'
}

task generateSourcesJar(type: Jar) {
Expand Down
2 changes: 1 addition & 1 deletion loaderviewlibrary/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<resources>
<color name="default_color">#D7D7D7</color>
<color name="darker_color">#B4B4B4</color>
</resources>
</resources>

0 comments on commit adf6849

Please sign in to comment.