1. 程式人生 > >一個漂亮的檢視預載入效果。

一個漂亮的檢視預載入效果。

An elegant context-care loading placeholder for Android

Usage

FiftyShadesOf.with(context)
             .on(view1, view2, view3)
             .start();

screen

Available attributes

View Selector

FiftyShadesOf.with(context)

             .on(R.id.view1, R.id.view2, R.id.view3) //views id

             .on(view1, view2, view3) //views references

             .on(viewGroup) //group of views

             .exept(view1, view2) //skip a view

             .start();

Cross

(By Default)

FiftyShadesOf.with(context)
             .on(R.id.view)
             .start();

screen

Fade

FiftyShadesOf.with(context)
             .on(R.id.view)
             .fadeIn(true)
             .start();

screen

Download

In your module Download

compile 'com.github.florent37:fiftyshadesof:1.0.0'