Pageloader
Simple android library for loading page with easy customization
Install / Use
/learn @arierie/PageloaderREADME
PageLoader
PageLoader is a simple android library for loading page with easy customization. Built by Arie Ridwansyah.

Setup
Add PageLoader to your dependencies block:
dependencies {
implementation 'id.arieridwan:pageloader:0.0.2'
}
Usage
PageLoader
Add a PageLoader to your layout just like any other view.
<id.arieridwan.lib.PageLoader
android:id="@+id/pageloader"
android:layout_width="match_parent"
android:layout_height="match_parent">
Define the action to load the page or displaying error page on the event
SomeMethod(){
pageLoader.startProgress();
...
onComplete(){
...
}
onNext(){
...
pageLoader.stopProgress();
}
onError(){
...
pageLoader.stopProgressAndFailed();
}
}
Set onClickListener when error page is displayed
pageLoader.setOnRetry(new View.OnClickListener() {
@Override
public void onClick(View view) {
pageLoader.startProgress();
}
});
You can easily customize the text for loading page or when displaying the error page then change the dimensions with following attribute
app:setLoadingText="Please wait..."
app:setErrorText="Something happened"
app:setTextColor="@color/black"
app:setTextSize="16sp"
Or you can change the image for loading or error page and set the dimensions of the image
app:setLoadingImage="@drawable/ic_search"
app:setErrorImage="@drawable/ic_not_found"
app:setLoadingImageHeight="64dp"
app:setLoadingImageWidth="64dp"
app:setErrorImageHeight="64dp"
app:setErrorImageWidth="64dp"
And also you can change the animation mode
app:setLoadingAnimationMode="rotate"
app:setLoadingAnimationMode="flip"
app:setLoadingAnimationMode="vibrate"
app:setLoadingAnimationMode="shake"
app:setLoadingAnimationMode="bounce"
And then, you can using custom animation or custom font
pageLoader.setCustomAnimation(myAnimation);
pageLoader.setCustomFont(myTypeface);
Screenshot
<p> <img src="https://github.com/arieridwan8/pageloader/blob/master/screenshots/image_zero.png" alt="Sample Apps" width="250"/> <img src="https://github.com/arieridwan8/pageloader/blob/master/screenshots/image_one.png" alt="Loading Page" width="250"/> <img src="https://github.com/arieridwan8/pageloader/blob/master/screenshots/image_two.png" alt="Error Page" width="250"/> </p>To Do
- [ ] setDefaultFontEnabled
- [ ] setLoadingProgressModeEnabled
Credits
Arie Ridwansyah
License
PageLoader is under Apache License 2.0.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
