# AndroidProgressLayout **Repository Path**: ubuntu/AndroidProgressLayout ## Basic Information - **Project Name**: AndroidProgressLayout - **Description**: Android View to simplify working with ProgressBar - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-08-27 - **Last Updated**: 2024-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AndroidProgressLayout-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1175) AndroidProgressLayout =====================

If you tired from wrapping your Views with RelativeLayout to add ProgressBar then this small view will help you. It extends from RelativeLayout, so you shouldn't add additional layouts to use it, just think about it as a RelativeLayout with auto added ProgressBar.

- [Features](#features) - [Getting Started](#getting-started) - [Including in your project](#including-in-your-project) - [Developed By](#developed-by) - [License](#license)









### Features - show/hide progress bar - setup background to hide your views when progress bar is showing ### Getting started Add com.github.androidprogresslayout.ProgressLayout to your layout ```xml ``` Now you can use progressLayout.progressLayout.showProgress() to show progress bar, progressLayout.showContent() to show content, or progressLayout.showErrorText( ) to show any text. progressLayout:progress="true|false" indicates, will progress bar visible, after view creation, or not. ```java webView.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { progressLayout.showProgress(); } @Override public void onPageFinished(WebView view, String url) { progressLayout.showContent(); } @Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Log.d(TAG, "onReceivedError: " + errorCode + " : " + description + " : " + failingUrl); super.onReceivedError(view, errorCode, description, failingUrl); progressLayout.showErrorText(description); } }); ``` ### Including in your project ```groovy allprojects { repositories { jcenter() } } dependencies { compile 'com.github.androidprogresslayout:library:2.0.2@aar' } ``` ##Developed By Anton Krasov -
## License AndroidProgressLayout is made available under the [MIT license](http://opensource.org/licenses/MIT):
The MIT License (MIT)

Copyright (c) 2014 Anton Krasov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.