MCPcopy Index your code
hub / github.com/Kaopiz/KProgressHUD

github.com/Kaopiz/KProgressHUD @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
84 symbols 173 edges 14 files 19 documented · 23%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

KProgressHUD

Apache License

Inspired by MBProgressHUD for iOS.

Compatibility

Android 2.3 and later

Adding KProgressHUD to your project

Gradle

Comming soon

Source code

You can download and import the library folder as module to your project.

Usage

The usage of KProgressHUD is pretty straight forward. You create the HUD, customize its style and show it on the UI thread. Then fire a background thread to work on long-running tasks. When done, call dismiss() to close it (if you use a determinate style, the HUD will automatically dismiss if progress reach its max).

KProgressHUD.create(MainActivity.this)
    .setStyle(KProgressHUD.Style.SPIN_INDETERMINATE)
    .setLabel("Please wait")
    .setDetailsLabel("Downloading data");
    .setCancellable(true)
    .setAnimationSpeed(2)
    .setDimAmount(0.5f)
    .show();

See Javadocs or sample app for more information.

Contributing

  1. Fork it ( https://github.com/Kaopiz/KProgressHUD/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contributor

License

   Copyright 2015 Kaopiz Software Co., Ltd.

   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.

Extension points exported contracts — how you extend this code

Determinate (Interface)
If a view implements this interface passed to the HUD as a custom view, its progress can be updated by calling setMax() [6 …
library/src/main/java/com/kaopiz/kprogresshud/Determinate.java
Indeterminate (Interface)
If a view implements this interface passed to the HUD as a custom view, its animation speed can be change by calling set [3 …
library/src/main/java/com/kaopiz/kprogresshud/Indeterminate.java

Core symbols most depended-on inside this repo

setStyle
called by 16
library/src/main/java/com/kaopiz/kprogresshud/KProgressHUD.java
dpToPixel
called by 13
library/src/main/java/com/kaopiz/kprogresshud/Helper.java
create
called by 9
library/src/main/java/com/kaopiz/kprogresshud/KProgressHUD.java
setLabel
called by 6
library/src/main/java/com/kaopiz/kprogresshud/KProgressHUD.java
scheduleDismiss
called by 6
demo/src/main/java/com/kaopiz/progresshud/demo/MainActivity.java
init
called by 3
library/src/main/java/com/kaopiz/kprogresshud/AnnularView.java
init
called by 3
library/src/main/java/com/kaopiz/kprogresshud/BackgroundLayout.java
init
called by 3
library/src/main/java/com/kaopiz/kprogresshud/BarView.java

Shape

Method 68
Class 13
Interface 2
Enum 1

Languages

Java100%

Modules by API surface

library/src/main/java/com/kaopiz/kprogresshud/KProgressHUD.java24 symbols
library/src/main/java/com/kaopiz/kprogresshud/SpinView.java8 symbols
library/src/main/java/com/kaopiz/kprogresshud/PieView.java8 symbols
library/src/main/java/com/kaopiz/kprogresshud/BarView.java8 symbols
library/src/main/java/com/kaopiz/kprogresshud/AnnularView.java8 symbols
library/src/main/java/com/kaopiz/kprogresshud/BackgroundLayout.java7 symbols
demo/src/main/java/com/kaopiz/progresshud/demo/MainActivity.java6 symbols
library/src/main/java/com/kaopiz/kprogresshud/Determinate.java3 symbols
library/src/test/java/com/kaopiz/kprogresshud/ExampleUnitTest.java2 symbols
library/src/main/java/com/kaopiz/kprogresshud/Indeterminate.java2 symbols
library/src/main/java/com/kaopiz/kprogresshud/Helper.java2 symbols
library/src/androidTest/java/com/kaopiz/kprogresshud/ApplicationTest.java2 symbols

For agents

$ claude mcp add KProgressHUD \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact