tokiii / Revealbanner
🚀🚀🚀 滑动特效banner
Stars: ✭ 209
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Revealbanner
Materialimageloading
Material image loading implementation
Stars: ✭ 396 (+89.47%)
Mutual labels: view, custom
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-82.78%)
Mutual labels: view, custom
Lemniscate
An easy way to make your progress view nice and sleek.
Stars: ✭ 420 (+100.96%)
Mutual labels: view, custom
Shapeofview
Give a custom shape to any android view, Material Design 2 ready
Stars: ✭ 2,977 (+1324.4%)
Mutual labels: view, custom
Bannerlayout
Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Stars: ✭ 92 (-55.98%)
Mutual labels: view, banner
Android Slidr
Another android slider / seekbar, but different :-)
Stars: ✭ 326 (+55.98%)
Mutual labels: view, custom
Mylittlecanvas
🎨Need to create a custom view ? You don't know how to use Canvas, use MyLittleCanvas instead !
Stars: ✭ 870 (+316.27%)
Mutual labels: view, custom
Coroutines-Animations
Use the power of kotlin coroutines to execute your android animations
Stars: ✭ 31 (-85.17%)
Mutual labels: custom, view
Fiftyshadesof
An elegant context-care loading placeholder for Android
Stars: ✭ 1,110 (+431.1%)
Mutual labels: view, custom
Incrementproductview
Interesting concept of products incrementation
Stars: ✭ 262 (+25.36%)
Mutual labels: view, custom
Arclayout
With Arc Layout explore new styles and approaches on material design
Stars: ✭ 1,662 (+695.22%)
Mutual labels: view, custom
Banner
🔥🔥ViewPager,ViewPager2无限轮播功能。自定义Indicator,支持一屏三页,支持仿魅族banner效果。极其简单的使用方式
Stars: ✭ 393 (+88.04%)
Mutual labels: view, banner
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (-77.99%)
Mutual labels: custom, view
Crazy-Banner
custom banner editor script for Termux
Stars: ✭ 60 (-71.29%)
Mutual labels: custom, banner
RMGradientView
A Custom Gradient View Control for iOS with inspectable properties.
Stars: ✭ 24 (-88.52%)
Mutual labels: custom, view
Mkloader
Beautiful and smooth custom loading views
Stars: ✭ 1,377 (+558.85%)
Mutual labels: view, custom
RevealBanner
滑动特效banner 如有帮助,给个Star
更新日志
[1.0.2] - 2020-07-14
增加 Android x版本
implementation 'com.tokiii:reveal-banner-x:1.0.2'
[1.0.2] - 2019-12-23
bug修复
- 修复长时间滑动卡顿性能问题.
示例代码
- 在 app的build.gradle 里面引用
implementation 'com.tokiii:reveal-banner:1.0.2'
- 布局文件
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="240dp">
<com.wikikii.bannerlib.banner.view.BannerBgContainer
android:id="@+id/banner_bg_container"
android:layout_width="match_parent"
android:layout_height="240dp" />
<com.wikikii.bannerlib.banner.LoopLayout
android:id="@+id/loop_layout"
android:layout_width="match_parent"
android:layout_height="168dp"
android:layout_gravity="bottom" />
</FrameLayout>
- 代码设置属性
// 设置轮播图属性
loopLayout.setLoop_ms(3000);//轮播的速度(毫秒)
loopLayout.setLoop_duration(400);//滑动的速率(毫秒)
loopLayout.setScaleAnimation(true);// 设置是否需要动画
loopLayout.setLoop_style(LoopStyle.Empty);//轮播的样式-默认empty
loopLayout.setIndicatorLocation(IndicatorLocation.Center);//指示器位置-中Center
loopLayout.initializeData(this);
// 设置轮播图属性end
// 准备数据
ArrayList<BannerInfo> bannerInfos = new ArrayList<>();
List<Object> bgList = new ArrayList<>();
bannerInfos.add(new BannerInfo(R.mipmap.banner_1, "first"));// 注意: 使用网络图片只需把 R.mipmap.banner_1 替换为网络图片地址即可
bannerInfos.add(new BannerInfo(R.mipmap.banner_2, "second"));
bgList.add(R.mipmap.banner_bg1);
bgList.add(R.mipmap.banner_bg2);
// 设置监听
loopLayout.setOnLoadImageViewListener(new OnDefaultImageViewLoader() {
@Override
public void onLoadImageView(ImageView view, Object object) {
Glide.with(view.getContext())
.load(object)
.into(view);
}
});
loopLayout.setOnBannerItemClickListener(this);
if (bannerInfos.size() == 0) {
return;
}
loopLayout.setLoopData(bannerInfos);// 设置轮播数据
bannerBgContainer.setBannerBackBg(this, bgList);// 背景容器设置轮播图片
loopLayout.setBannerBgContainer(bannerBgContainer);// 联动
loopLayout.startLoop();// 开始循环
License
Copyright 2019, tokiii
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].