carousel viewpager2 recyclerview pagegridview banner Java
Need help with PageRecyclerView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

Description

PageRecyclerView achieves page turning function and unlimited carousel

236 Stars 25 Forks Apache License 2.0 335 Commits 2 Opened issues

Services available

Free trial

Need anything else?

PageRecyclerView

PageRecyclerView achieves page turning function and unlimited carousel 中文文档

Effect

| carousel | horizontal-grid-paging | add-data | | ------------ | ------------------------- | ----------- | | | |

| remove-data | vertical-linear-paging | | ------------ | ------------------------- | | | |

Demo

Download APK

Dependencies

add dependencies:

    dependencies {
        implementation 'ckrjfrog.Page:PageView:1.2.12'//gradle plugin 3.0(inclusive) above used
        //compile 'ckrjfrog.Page:PageView:1.2.12'//gradle plugin 3.0 below used
    }

Function And Use

1.layout reference

    

2.attributes description

| attributes       | description                   | type | defaults       | | ------------------ | ----------------------------- | ----------------- | ---------------- | | loop | start a carousel(valid when there is only one item per page) | boolean | false | | loopinterval | loop interval | int | 3000 | | autoplay | automatically scroll to the next page | boolean | false | | autosize | automatically adjust the width or height of item(valid in the grid layout) | boolean | false | | hideindicator     | hide indicator | boolean | false | | indicatorcontainerbackground| the background of indicator parent container | drawable | null | | indicatorcontainerheight    | indicator parent container height(valid in the vertical orientation) | int | 90 | | indicatorcontianerwidth     | indicator parent container width(valid in the horizontal orientation) | int | 90 | | indicatorgroupalignment     | the alignment of indicator group(eg: left,top,center) | int | 0x11(center) | | indicatorgroupmarginLeft   | the marginLeft of indicator group | int | 0 | | indicatorgroupmarginTop   | the marginTop of indicator group | int | 0 | | indicatorgroupmarginRight  | the marginRight of indicator group | int | 0 | | indicatorgroupmarginBottom | the marginBottom of indicator group | int | 0 | | indicatormargin | indicator spacing | boolean | false | | clipToPadding | the clipTopadding of recyclerView | int | 15 | | pagePadding | recyclerView.setPadding(pagePadding,0,pagePading,0) | int | 15 | | layoutflag | mark linear layout or grid layout | int     | 0(linear layout) | | orientation | layout orientation | int | 0(horizontal) | | overlaplayout | Whether the indicator overlaps the page | boolean | false | | pagecolumn | the number of columns per page   | int | 1 | | pagerow | the number of rows per page   | int | 1 | | selectedindicatorcolor      | indicator color for the current page   | int | Color.RED | | selectedindicatordiameter   | indicator diameter for the current page   | int | 15 | | selectedindicatordrawable   | indicator drawable for the current page(priority is higher than color) | drawable | null | | unselectedindicatorcolor | indicator color for the non-current page   | int | Color.BLACK | | unselectedindicatordiameter | indicator diameter for the non-current page   | int | 15 | | selectedindicatordrawable   | indicator drawable for the non-current page(priority is higher than color) | drawable | null | | pagebackground | the background of the current page | drawable | null | | enabletouchscroll | Whether to allow touch scrolling | boolean | true | | maxscrollduration | Maximum scrolling time of the page | int | 600 | | minscrollduration | Minimum scrolling time of the page | int | 0 | | subloopinterval | When the index is adjusted, loop interval | int | 100 |

3.code to use

    mainAdapter = new MainAdapter(getContext(), itemLayoutId);//MainAdapter extend BasePageAdapter
    pageView.setAdapter(mainAdapter);
    pageView.updateAll(items);

Thanks

banner

My Other Project

CollapsingRefresh

FlexItemDecoration

Version Tracking

  • 1.2.0-release

    • add: the settings of autoplay
    • add: the animation of scrolling to the page
  • 1.1.1-release

    • repair: When fast sliding,the indicators don't update in time
    • repair: the method of setCurrentItem(1,false) doesn't work
    • add: clipToPadding and pagePadding Settings
  • 1.1.0-release

    • add: the indicator container alignment, margin Settings, background Settings, and overlap layout styles
    • other: optimize the code
  • 1.0.9-release

    • repair: When the carousel is broadcast, the data source changes to cause confusion in the indicator point.

Community

Contact Me: 862950533
Or scan the QR code below:

License

Copyright 2018 ckrgithub

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.