Loading

Loading dialog for Android

License

License

GroupId

GroupId

com.yanzhenjie
ArtifactId

ArtifactId

loading
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

Loading
Loading dialog for Android
Project URL

Project URL

https://github.com/yanzhenjie/Loading
Source Code Management

Source Code Management

https://github.com/yanzhenjie/Loading

Download loading

How to add to project

<!-- https://jarcasting.com/artifacts/com.yanzhenjie/loading/ -->
<dependency>
    <groupId>com.yanzhenjie</groupId>
    <artifactId>loading</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.yanzhenjie/loading/
implementation 'com.yanzhenjie:loading:1.0.2'
// https://jarcasting.com/artifacts/com.yanzhenjie/loading/
implementation ("com.yanzhenjie:loading:1.0.2")
'com.yanzhenjie:loading:aar:1.0.2'
<dependency org="com.yanzhenjie" name="loading" rev="1.0.2">
  <artifact name="loading" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.yanzhenjie', module='loading', version='1.0.2')
)
libraryDependencies += "com.yanzhenjie" % "loading" % "1.0.2"
[com.yanzhenjie/loading "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Loading

A MaterialDesign style LoadingView. Currently only for my own open source project, it comes from LoadingDrawable, recommend using the LoadingDrawable.

中文文档


Screenshot

Dependencies

  • Gradle
compile 'com.yanzhenjie:loading:1.0.2'
  • Maven
<dependency>
  <groupId>com.yanzhenjie</groupId>
  <artifactId>loading</artifactId>
  <version>1.0.2</version>
  <type>pom</type>
</dependency>

Usage

XML or Java:

<com.yanzhenjie.loading.LoadingView
    android:id="@+id/loading_view"
    android:layout_width="150dp"
    android:layout_height="150dp" />

// Or java:  
LoadingView loadView = new LoadingView(context);

The default is a white circle, change color:

LoadingView loadView;
loadView.setCircleColors(color1, color2, color3);

It will automatically turn up.

Default Dialog:

Dialog mWaitDialog = new LoadingDialog(context);
mWaitDialog.setMessage(R.string.loading_wait);
// mWaitDialog.setMessage("Please wait...");
mWaitDialog.setCircleColors(...);
mWaitDialog.show();

Thanks

LoadingDrawable

License

Copyright © Yan Zhenjie

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.

Versions

Version
1.0.2
1.0.1
1.0.0