Giter Site home page Giter Site logo

gbkxyrecycler's Introduction

GBKXYRecycler

Two-way Recycler to display tables or arbitrary custom views.

Installation

Add to the top level gradle file:

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

Add to the app level gradle:

dependencies {
    implementation 'com.github.gbksoft:GBKXYRecycler:v1.0.0'
}

Capabilities

  • Auto-width columns on-the-fly
  • You can use custom layouts as cells
  • You can setup width and heights of headers, show or not to show dividers, change dividers colors

How to use

<com.gbksoft.debugview.xyrecycler.XYRecycler
    android:id="@+id/xyRecycler"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:column_header_height="40dp"
    app:row_header_width="80dp"
    app:divider_color="@android:color/holo_green_dark"
    app:show_vertical_divider="true"
    app:show_horizontal_divider="true"/>

app:row_header_width="80dp" - header width

app:column_header_height="40dp" - header height

app:divider_color="@android:color/holo_green_dark" - divider color

app:show_vertical_divider="true" - show or not to show vertical dividers

app:show_horizontal_divider - show or not to show horizontal dividers

BaseRecyclerAdapter xyRecyclerAdapter = new XYRecyclerAdapter(getContext());
layout.xyRecycler.setAdapter(xyRecyclerAdapter);
xyRecyclerAdapter.setAllItems(
        RandomContent.getRandomColumnHeaderList(),
        RandomContent.getRandomRowHeaderList(),
        RandomContent.getRandomCellList());
public void setAllItems(List<CH> columnHeaderItems, List<RH> rowHeaderItems, List<List<C>> cellItems)

CH, RH, C - You can use default ColumnHeaderMode, RowHeaderModel, CellModel

Let us know

This scrollable view android adjustment is not our only original decision. Contact us by email [email protected] to find out more about our projects! Share your feedback and tell us about yourself.

gbkxyrecycler's People

Contributors

alexivantsov avatar annedomini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.