Zurück zum Ranking

Some custom LayoutManager .Such as SwipeCard、FLowLayout。一些自定义的LayoutManager,仿探探、人人影视 炫动滑动 卡片层叠 和流式布局等。

layoutmanagercardcardsitemtouchhelperflow-layoutswipeable
Sterne-Wachstum
Sterne
2.5k
Forks
390
Wochenwachstum
Issues
28
1k2k
Okt. 2016Jan. 2020Apr. 2023Juli 2026
ArtefakteMavengit clone https://github.com/mcxtzhang/ZLayoutManager.git
README

LayoutManagerDemo

利用自定义LayoutManager 的一些实战实例。

相关博文:

流式布局

仿探探、人人影视 卡片层叠 炫动滑动布局

想经济上支持我 or 想通过视频看我是怎么实现的:

http://edu.csdn.net/course/detail/3956

If you like, point a star .Thank you very much!

喜欢随手点个star 多谢

在哪里找到我:

我的github:

https://github.com/mcxtzhang

我的CSDN博客:

http://blog.csdn.net/zxt0601

我的稀土掘金:

http://gold.xitu.io/user/56de210b816dfa0052e66495

我的简书:

http://www.jianshu.com/users/8e91ff99b072/timeline


效果一览:

仿探探、人人影视 卡片层叠 炫动滑动布局

探探皇帝翻牌子即视感

探探皇帝翻牌子即视感

人人美剧订阅界面

人人美剧订阅界面

可配置参数(同时显示6页):

人人美剧订阅界面

流式布局

这里写图片描述

艾玛,换成妹子图后貌似好看了许多,我都不认识它了,好吧,项目里它一般长下面这样:

这里写图片描述

往常这种效果,我们一般使用自定义ViewGroup实现,我以前也写了一个。自定义VG实现流式布局

使用:

Step 1. 在项目根build.gradle文件中增加JitPack仓库依赖。

    allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

Step 2. Add the dependency

    dependencies {
	        compile 'com.github.mcxtzhang:ZLayoutManager:V1.1.0'
	}

Step 3. 仿探探、人人影视 卡片层叠 炫动滑动布局:

以后老板让你做这种效果,你只需要:

	mRv.setLayoutManager(new OverLayCardLayoutManager());
        CardConfig.initConfig(this);
        ItemTouchHelper.Callback callback = new RenRenCallback(mRv, mAdapter, mDatas);
        ItemTouchHelper itemTouchHelper = new ItemTouchHelper(callback);
        itemTouchHelper.attachToRecyclerView(mRv);

如果需要定制特殊的参数,例如显示6层:

		 CardConfig.MAX_SHOW_COUNT = 6;

设置仿探探竖直上下滑动,不删除Item。

水平方向判断误差阈值x:

        final TanTanCallback callback = new TanTanCallback(mRv, mAdapter, mDatas);
        callback.setHorizontalDeviation(x);

流式布局:

        mRv.setLayoutManager(new FlowLayoutManager());

刚建了个QQ搞基交流群: 557266366 里面现在没有人。 嗯,就这样吧。

使用的Adapter:

https://github.com/mcxtzhang/all-base-adapter

Ähnliche Repositories
alibaba/vlayout

Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layouts in the same recyclerview.

JavaMavenMIT Licenseandroidrecyclerview-multi-type
tangram.pingguohe.net
10.7k1.8k
yarolegovich/DiscreteScrollView

A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.

JavaMavenandroidview
5.8k784
Oleg-Beloy/ChipsLayoutManager

ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features

JavaMavenApache License 2.0androidrecyclerview
3.3k368
BelooS/ChipsLayoutManager

ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features

JavaMavenApache License 2.0androidrecyclerview
3.3k365
yuyakaido/CardStackView

📱Tinder like swipeable card view for Android

JavaMavenApache License 2.0androidtinder
2.5k467
yuqirong/CardSwipeLayout

Use RecyclerView to achieve card swipe layout , like Tantan . (模仿探探卡片滑动效果的布局)

JavaMavenMIT Licenseandroidrecyclerview
1.3k185
jiang111/Awesome-RecyclerView-LayoutManager

RecyclerView-LayoutManager Resources

layoutmanagerrecyclerview
1.1k131
BCsl/GalleryLayoutManager

New way to implements ViewPager/Gallery in Android with RecycleView

JavaMavenApache License 2.0layoutmanagerrecyclerview
1k144