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
- Host: GitHub
- URL: https://github.com/flipboxstudio/sosoito
- Owner: flipboxstudio
- Created: 2017-02-21T15:34:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T16:52:59.000Z (almost 9 years ago)
- Last Synced: 2025-07-26T05:39:15.477Z (11 months ago)
- Topics: android, loading-spinner, progress-bar
- Language: Java
- Homepage:
- Size: 190 KB
- Stars: 14
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://jitpack.io/#flipboxstudio/sosoito)
[](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()`
---
