All Projects → youngkaaa → Yviewpagerdemo

youngkaaa / Yviewpagerdemo

Licence: apache-2.0
[停止维护]YViewPager,support horizontal and vertical,based on support.v4.view.ViewPager

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Yviewpagerdemo

Antonio
Android library for the adapter view (RecyclerView, ViewPager, ViewPager2)
Stars: ✭ 89 (-75.21%)
Mutual labels:  viewpager
Bannerview
横幅广告图片轮播控件
Stars: ✭ 290 (-19.22%)
Mutual labels:  viewpager
Rtl Viewpager
ViewPager with RTL support 🔄
Stars: ✭ 323 (-10.03%)
Mutual labels:  viewpager
Reside-Menu
By applying viewpager animation you can also make AMAZING Reside Menu's
Stars: ✭ 72 (-79.94%)
Mutual labels:  viewpager
Cmpagetitleview
✍️一分钟集成类似抖音,新浪微博,腾讯视频,网易新闻,今日头条等常见的标题栏样式,api灵活易扩展,支持Cocoapods和Masonry布局,支持ChildController的完整生命周期
Stars: ✭ 270 (-24.79%)
Mutual labels:  viewpager
Flowhelper
帮助您迅速构建顶部Tab,比如今日头条效果,热搜、搜索记录、与ViewPager/ViewPager2搭配的工具类;
Stars: ✭ 295 (-17.83%)
Mutual labels:  viewpager
react-native-viewpager-indicator
修改自react-native-scrollable-tab-view,增加了根据文字内容适配下划线长度的功能。
Stars: ✭ 52 (-85.52%)
Mutual labels:  viewpager
Dragsloplayout
A UI library for Android
Stars: ✭ 354 (-1.39%)
Mutual labels:  viewpager
Viewpagertransition
viewpager with parallax pages, together with vertical sliding (or click) and activity transition
Stars: ✭ 3,017 (+740.39%)
Mutual labels:  viewpager
Offsetanimator
Animations driven by finger movement
Stars: ✭ 317 (-11.7%)
Mutual labels:  viewpager
Inkeverticalviewpagerlive
仿映客viewPager上下滑动切换直播
Stars: ✭ 258 (-28.13%)
Mutual labels:  viewpager
Transformerslayout
🔥 App金刚区导航菜单,类似淘宝、QQ音乐等APP导航,方格布局横向多行滑动翻页带滚动条
Stars: ✭ 258 (-28.13%)
Mutual labels:  viewpager
Cardslideview
一行代码实现ViewPager卡片效果,比ViewPager2更强大,底层同样是RecyclerView
Stars: ✭ 301 (-16.16%)
Mutual labels:  viewpager
FastBanner
🔥快速轮播图,支持自定义布局和使用自有图片显示组件
Stars: ✭ 27 (-92.48%)
Mutual labels:  viewpager
Graceviewpager
1.支持ViewPager按需添加、删除视图,以及局部刷新; 2.修复多场景下ViewPager.PageTransformer返回的position错误,让开发者专注于动画实现; 3.修复ViewPager的width、paddingLeft、paddingRight、pageMargin动态改变导致当前page定位异常的问题; 4.提供自定义GraceViewPager,可快速实现一屏显示多Page的功能。
Stars: ✭ 341 (-5.01%)
Mutual labels:  viewpager
PhotoBrowse
PhotoBrowse is an Android photo browser that supports dragging off 图片浏览器,支持拉下拖动关闭
Stars: ✭ 22 (-93.87%)
Mutual labels:  viewpager
Eleme Master
高仿饿了么3.0版本点餐页面
Stars: ✭ 297 (-17.27%)
Mutual labels:  viewpager
Corbind
Kotlin Coroutines binding APIs for Android UI widgets from the platform and support libraries
Stars: ✭ 357 (-0.56%)
Mutual labels:  viewpager
Changetablayout
[停止维护]一款炫酷的TabLayout
Stars: ✭ 345 (-3.9%)
Mutual labels:  viewpager
Loopingviewpager
A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
Stars: ✭ 310 (-13.65%)
Mutual labels:  viewpager

   由于个人原因,该仓库停止维护/For personal reasons, this repository stopped maintenance

YViewPagerDemo

YViewPager,support horizontal and vertical,based on support.v4.view.ViewPager

中文版点这里

Usage

Gradle

compile 'cn.youngkaaa:yviewpager:0.4'

Maven

<dependency>
  <groupId>cn.youngkaaa</groupId>
  <artifactId>yviewpager</artifactId>
  <version>0.4</version>
  <type>pom</type>
</dependency>

Intro

The YViewPager is modified from the official support.v4.view.ViewPager,which support the direction of horizontal and vertical(new direction).You can use this lib just like the official support.v4.view.ViewPager,include the features of setPageTransformer()addOnPageChangeListener()setOffscreenPageLimit() and so on,And also supported the TabLayout.

Feature

Direction

On the base of the support.v4.view.ViewPager,add the property of direction. You can use it by:

xml

<cn.youngkaaa.yviewpager.YViewPager
    android:id="@+id/viewpager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:orientation="vertical"/>

just like the above xml.you can add the property app:orientation in YViewPager tag, the value of this property is horizontal and vertical.

java code

mViewPager.setDirection(YViewPager.VERTICAL);

mViewPager.setDirection(YViewPager.HORIZONTAL);

you can change the direction by calling the YViewPager.setDirection()

Tip:It's not recommended that change the direction when your application is running,which include a inflated YViewPager,because at this time the YViewPager may included the Fragments,which may has the deeply view hierarchy,and when you call the setDriection() may invaliate the layout,so may cause the application ANR or bad layout.but it's just not recommended,not unsupport!

Circulatory

in v1.2,add the property of circulatory.you can use it by:

xml

<cn.youngkaaa.yviewpager.YViewPager
  android:id="@+id/viewpager1"
  android:layout_width="match_parent"
  android:layout_height="188dp"
  app:circulatory="true"
  app:orientation="horizontal"/>

yeah,you just need to add one line.

java

sorry,the property of circulatory do not support to change by using java code.

Version

v0.4

see here  (2017-4-18)

v0.3

minSdkVersion to 14 (2017-4-08)

v0.2

add the circulatory property,which support the direction of horizontal and vertical (2017-2-26)

v0.1

support the direction of vertical and horizontal(2017-2-22

Finally

Because the FragmentPagerAdapterFragmentStatePagerAdapter and PagerAdapter has some methods are not br called in YViewPager,so I copy the code in this lib named YFragmentPagerAdapterYFragmentStatePagerAdapter and YPagerAdapter,you can choose the YxxxxxAdapter in this lib which you needed!

The running screenshot:

v0.1

v0.2

If you think this lib help you,you can give me a star to encourage me! thanks a lot

License

Copyright 2017 youngkaaa

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].