Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.iamkurtgoz:ProgressView:1.3'
}
public abstract class BaseFragment extends BaseProgressFragment {
- Extend your fragment from the library *
setLoading(); //for loading
setLoading("Loading.. Please Wait"); //for loading
setTextMessage("Error connection. Please try again later."); //just text message
setMessage(R.drawable.error_image,"Error Data","Please try again later."); //rich message