All Projects → iammert → Statusview

iammert / Statusview

Custom status view for Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Statusview

Voiceripple
Voice Record Button that has ripple effect with users voice
Stars: ✭ 379 (-51.1%)
Mutual labels:  custom-view
Crunchycalendar
A beautiful material calendar with endless scroll, range selection and a lot more!
Stars: ✭ 465 (-40%)
Mutual labels:  custom-view
Freedrawview
A View on which you can freely draw, customizing paint width, alpha and color, and take a screenshot of the content. Useful for note apps, signatures or free hand writing.
Stars: ✭ 627 (-19.1%)
Mutual labels:  custom-view
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (-47.1%)
Mutual labels:  custom-view
Easysegmentedbarview
本库主要提供一个简单易用的自定义分段控件,方便快速实现分段效果,支持xml配置、代码配置、分段规则按均分/比例分、数字分段、文本分段、渐变分段、bar条样式正常/圆形/三角形,segment文字样式、进度设置、进度标记类型设置、分段描述设置、其它更多自定义设置等功能。
Stars: ✭ 455 (-41.29%)
Mutual labels:  custom-view
Stateview
✨ StateView is an invisible, zero-sized View that can be used to lazily inflate loadingView/emptyView/retryView at runtime.
Stars: ✭ 573 (-26.06%)
Mutual labels:  custom-view
Pudding
🌟 Pudding use WindowManager(don't need request permission) to pull down a view that are displayed on top their attached window
Stars: ✭ 371 (-52.13%)
Mutual labels:  custom-view
Creditcardview
💳 CreditCardView is an Android library that allows developers to create the UI which replicates an actual Credit Card.
Stars: ✭ 744 (-4%)
Mutual labels:  custom-view
Freepager
ViewPagers library for Android
Stars: ✭ 461 (-40.52%)
Mutual labels:  custom-view
Xrecyclerview
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView
Stars: ✭ 5,269 (+579.87%)
Mutual labels:  custom-view
Android Otpview Pinview
A custom view to enter otp of different sizes used usually in cases of authentication.
Stars: ✭ 422 (-45.55%)
Mutual labels:  custom-view
Widgetcase
自定义控件模块库:各种风格的自定义控件,拿来就用,API文档详细,持续集成,长期维护,有问必答;
Stars: ✭ 440 (-43.23%)
Mutual labels:  custom-view
Views
A collection of cool android custom views
Stars: ✭ 580 (-25.16%)
Mutual labels:  custom-view
Text Decorator
Decorate your TextView easily
Stars: ✭ 402 (-48.13%)
Mutual labels:  custom-view
Easysignseekbar
本库主要提供一个漂亮而强大的自定义SeekBar,进度变化由提示牌 (sign)展示,具有强大的属性设置,支持设置section(节点)、mark(标记)、track(轨迹)、thumb(拖动块)、progress(进度)、sign(提示框)等功能
Stars: ✭ 629 (-18.84%)
Mutual labels:  custom-view
Compositionavatar
Android composition avatar. 仿QQ讨论组头像
Stars: ✭ 371 (-52.13%)
Mutual labels:  custom-view
Passcodeview
Material Design PasscodeView for Android.
Stars: ✭ 513 (-33.81%)
Mutual labels:  custom-view
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (-3.48%)
Mutual labels:  custom-view
Fogview library
FogView is a android library that can show fog on any layout and the fog removes when user rubs it.
Stars: ✭ 633 (-18.32%)
Mutual labels:  custom-view
Gameplane
基于Android的仿微信打飞机游戏
Stars: ✭ 592 (-23.61%)
Mutual labels:  custom-view

StatusView

Custom status view for Android.

Usage

Add to XML

If you want to use ConnectionStatusView

<iammert.com.library.ConnectionStatusView
        android:id="@+id/status"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        app:dismissOnComplete="true" />

If you want to use your own layout for status

<iammert.com.library.StatusView
        android:id="@+id/status"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        app:dismissOnComplete="true"
        app:complete="@layout/completeLayout"
        app:error="@layout/errorLayout"
        app:loading="@layout/loadingLayout"/>

Then call status method

statusView.setStatus(Status.LOADING);
statusView.setStatus(Status.ERROR);
statusView.setStatus(Status.COMPLETE);
statusView.setStatus(Status.IDLE); //hide status

If you want to dismiss automagically after oncomplete is called, then add app:dismissOnComplete="true" as attribute.

Getters

You can inflate your custom views for all statuses(ERROR/COMPLETE/LOADING). And you can also get this views to control included UI widgets like button/imageview.

View viewError = statusView.getErrorView();
View viewComplete = statusView.getCompleteView();
View viewLoading = statusView.getLoadingView();

Listeners

statusView.setOnErrorClickListener(listener);
statusView.setOnLoadingClickListener(listener);

Import

Add this to you project build.gradle

allprojects {
        repositories {
                ...
                maven { url 'https://jitpack.io' }
        }
}

Add this dependency to your app build.gradle

compile 'com.github.iammert:StatusView:1.3'

License

Copyright 2017 Mert Şimşek.

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].