An open API service indexing awesome lists of open source software.

https://github.com/flipboxstudio/sosoito

Progress layout collection for Android
https://github.com/flipboxstudio/sosoito

android loading-spinner progress-bar

Last synced: 9 months ago
JSON representation

Progress layout collection for Android

Awesome Lists containing this project

README

          

[![](https://jitpack.io/v/flipboxstudio/sosoito.svg)](https://jitpack.io/#flipboxstudio/sosoito)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Sosoito-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5518)

# Sosoito
Sosoito is layout library for Android that can be used to simplify basic needs for loading/progression state.

[Demo / Sample Project](https://github.com/flipboxstudio/mvvm-starter)

## Installation
Sosoito can installed by adding the following dependency to your build.gradle file:
```
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
```
```
dependencies {
compile 'com.github.flipboxstudio:sosoito:latest-release'
}
```
## Usage
###### Basic
You can start using sosoito by add your preferable layout in your layout.xml:
```

```
Then, access it from your activity/fragment to use it's feature:
```
...
LoadingLayout loadingLayout = (LoadingLayout) findViewById(R.id.loadingLayout);
loadingLayout.showLoading(true);
...
```

###### Available Methods
Empty Layout
* `showEmptyView(boolean)`
* `showEmptyView(boolean, message)`
* `showEmptyView(boolean, iconResourceId)`
* `showEmptyView(boolean, iconResourceId, message)`

Custom Loading Layout
* `showCustomLoading(boolean)`
* `showCustomLoading(boolean, message)`
* `showCustomLoading(boolean, iconResourceId)`
* `showCustomLoading(boolean, iconResourceId, message)`

Loading (in) layout
* `showLoading(boolean)`
* `showLoading(boolean, message)`

Progress Dialog
* `showProgressDialog()`
* `showProgressDialog(message)`
* `setProgressDialogMessage(message)`
* `hideProgressDialog()`

---
![screenshot](https://puu.sh/wyeSm/e0972a485c.png)