Skip to content
Permalink
Browse files

added new readme file with description

  • Loading branch information...
Gavryschuk Yaroslav
Gavryschuk Yaroslav committed May 29, 2017
1 parent 416864e commit fe408d021628f23673ad3715d01f47ef57882604
@@ -1,7 +1,64 @@
# Points Loader View
# Dots Loader View

[![Made in SteelKiwi](https://github.com/steelkiwi/IndicatorView/blob/master/assets/made_in_steelkiwi.png)](http://steelkiwi.com/blog/)
[![Download](https://api.bintray.com/packages/soulyaroslav/maven/dots-loader-view/images/download.svg)](https://bintray.com/soulyaroslav/maven/dots-loader-view/_latestVersion)

Wonderful dots loader view inspired this [Design](https://material.uplabs.com/posts/loading-animation-dots)

# View

![](https://github.com/soulyaroslav/DotsLoaderView/blob/master/assets/loader.gif)
![](https://github.com/steelkiwi/DotsLoaderView/blob/master/assets/dots-loader-view.gif)

# Download

## Gradle

```gradle
compile 'com.steelkiwi:dots-loader-view:1.0.0'
```

# Usage

Add DotsLoaderView to your xml layout

```xml
<steelkiwi.com.library.DotsLoaderView
android:id="@+id/dotsLoaderView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible"
app:dlv_item_drawable="@drawable/circle_background"
app:dlv_line_color="@color/point_color"/>
```

You can customize view, through this attributes

* app:dlv_item_drawable - background shape for dot view
* app:dlv_line_color - view bottom line color

To use it in the code you need only call this method

```java
// to show loading
dotsLoaderView.show();
// to hide loading
dotsLoaderView.hide();
```

# License

```
Copyright © 2017 SteelKiwi, http://steelkiwi.com
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.
```
@@ -15,21 +15,21 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);


final DotsLoaderView view1 = (DotsLoaderView) findViewById(R.id.dotsLoaderView);
final DotsLoaderView dotsLoaderView = (DotsLoaderView) findViewById(R.id.dotsLoaderView);
Button show = (Button) findViewById(R.id.show);
Button hide = (Button) findViewById(R.id.hide);

show.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
view1.show();
dotsLoaderView.show();
}
});

hide.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
view1.hide();
dotsLoaderView.hide();
}
});
}
Binary file not shown.
BIN -11.4 KB assets/loader.gif
Binary file not shown.
Binary file not shown.
@@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.novoda:bintray-release:0.4.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -21,3 +22,12 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}

ext {
userOrg = 'soulyaroslav'
groupId = 'com.steelkiwi'
uploadName = 'dots-loader-view'
description = 'Amazing dots loading view'
publishVersion = '1.0.0'
licences = ['Apache-2.0']
}
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 25
@@ -29,3 +30,13 @@ dependencies {
compile 'com.android.support:appcompat-v7:25.1.1'
testCompile 'junit:junit:4.12'
}

publish {
artifactId = 'dots-loader-view'
userOrg = rootProject.userOrg
groupId = rootProject.groupId
uploadName = rootProject.uploadName
publishVersion = rootProject.publishVersion
description = rootProject.description
licences = rootProject.licences
}

0 comments on commit fe408d0

Please sign in to comment.
You can’t perform that action at this time.