All Projects → samlss → Broccoli

samlss / Broccoli

Licence: apache-2.0
📟An Android library that shows the placeholder of the view.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Broccoli

SkeletonPlaceholderView
A library for creating dynamic skeleton view
Stars: ✭ 25 (-98.2%)
Mutual labels:  view, placeholder
Kaloader
Beautiful animated placeholders for showing loading of data
Stars: ✭ 99 (-92.88%)
Mutual labels:  placeholder
Inifiniterecyclerview
Library for implementing endless loading list easily in Android applications
Stars: ✭ 79 (-94.32%)
Mutual labels:  view
Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (-93.38%)
Mutual labels:  view
Shimmerlayout
Memory efficient, simple yet highly customizable shimmer effect for Android.
Stars: ✭ 81 (-94.17%)
Mutual labels:  placeholder
Kanvas
Make canvas easier to use in Kotlin 😊
Stars: ✭ 93 (-93.31%)
Mutual labels:  view
Mocka
Simple, elegant content placeholder
Stars: ✭ 1,205 (-13.31%)
Mutual labels:  placeholder
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (-0.94%)
Mutual labels:  view
Collectionnode
a collectionView made for Sprite Kit
Stars: ✭ 96 (-93.09%)
Mutual labels:  view
Kvconstraintkit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift.
Stars: ✭ 91 (-93.45%)
Mutual labels:  view
Floatingtoast
Android library to create customizable floating animated toasts like in Clash Royale app
Stars: ✭ 86 (-93.81%)
Mutual labels:  view
Aura.view
Provides TemplateView and TwoStepView using PHP as the templating language, with support for partials, sections, and helpers.
Stars: ✭ 81 (-94.17%)
Mutual labels:  view
Windowshowdemo
Android 弹窗案例总结(仿淘宝弹窗 咸鱼菜单 筛选列表)
Stars: ✭ 95 (-93.17%)
Mutual labels:  view
Memorymonitor
内存监控器
Stars: ✭ 79 (-94.32%)
Mutual labels:  view
Tabbar
🔥空祖家的导航栏工具
Stars: ✭ 100 (-92.81%)
Mutual labels:  view
Localizationprovider
Database driven localization provider for .NET applications (core assemblies)
Stars: ✭ 77 (-94.46%)
Mutual labels:  placeholder
Animated Stars Android
Draw animated stars on Android view canvas - written in Kotlin
Stars: ✭ 85 (-93.88%)
Mutual labels:  view
Uitextview Placeholder
A missing placeholder for UITextView
Stars: ✭ 1,317 (-5.25%)
Mutual labels:  placeholder
Rdgliderviewcontroller Swift
Control for a floating view gliding over a ViewController Edit
Stars: ✭ 102 (-92.66%)
Mutual labels:  view
Ticketview
🎫 A custom view for showing tickets
Stars: ✭ 101 (-92.73%)
Mutual labels:  view

Broccoli

Download Api reqeust Apache License 2.0

中文

Show the placeholder of view when you are loading something...

Screenshots

The default effect:

Broccoli

The advenced effect:

Broccoli

Use in RecyclerView

Broccoli

DingDing

Broccoli

Broccoli

Dependency

Gradle

Add it in your module build.gradle at the end of repositories:

dependencies {
    implementation 'me.samlss:broccoli:1.0.0'
}

Maven

<dependency>
  <groupId>me.samlss</groupId>
  <artifactId>broccoli</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Sample Usage

Broccoli broccoli = new Broccoli();

//add the default style placeholder
broccoli.addPlaceholders('activity', 'view_id', 'view_id'); 

or 
//add the default style placeholder
broccoli.addPlaceholders('view1', 'view2', 'view3'); 

or 

//add the custom style placeholder
broccoli.addPlaceholder(new PlaceholderParameter.Builder()
                        .setView('view')
                        .setAnimation('scaleAnimation');
                        .setDrawable(DrawableUtils.createRectangleDrawable(placeHolderColor, 0))
                        .build()); 

or
//add the custom style placeholder with gradient animation
broccoli.addPlaceholder(new PlaceholderParameter.Builder()
                        .setView('view')
                        .setDrawable(new BroccoliGradientDrawable(Color.parseColor("#DDDDDD"),
                            Color.parseColor("#CCCCCC"), 0, 1000, new LinearInterpolator())
                        .build()); 
broccoli.show();

License

Copyright 2018 samlss

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].