New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xyz.imzyx.open:loadingstate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xyz.imzyx.open:loadingstate

A view embed loading, error, empty states

  • 1.0.3
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

LoadingStateLayout

A layout with loading state. You can easily to show loading state(waiting state) on you working view.

How to use

LoadingStateLayout is the base layout for all LoadingState views. In most cases, we just need to use views which under the 'z.hol.loadingstate.view package'.

The class start with 'Simple' like 'SimpleViewWithLoadingState', means you need set custom layout in xml with 'DataView' attribute(See the sample).

There are other attributes you can set in style.

EmptyText
EmptyIcon
ErrorText
ErrorIcon
LoadingProgress (the circle drawable)

you can also set above attribute in theme with name 'loadingStateStyle'

  1. create a custom theme for loading state views

     <style name="CustomLoadingState">
         <item name="LoadingProgress">@drawable/progress_loading</item>
         <item name="EmptyIcon">@drawable/icon_empty</item>
     </style>
    
  2. set the 'CustomeLoadingState' theme in you application theme, with name 'loadingStateStyle'

     <style name="AppTheme" parent="AppBaseTheme">
         <item name="loadingStateStyle">@style/CustomLoadingState</item>
     </style>
    

FAQs

Package last updated on 16 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc