FixedHeaderTableLayout

FixedHeaderTableLayout is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells with multi direction scrolling and zooming.

This repository also contains a sample app that is designed to show you how to create your own FixedHeaderTableLayout in your application.

FixedHeaderTableLayout is similar in construction and use as to Android's TableLayout

FixedHeaderTableLayout

Features

  • [x] 1 to X number of rows can be fixed as column headers at the top of the table
  • [x] 1 to X number of rows can be fixed as row headers at the left of the table
  • [x] Multi direction scrolling is available if the table is larger than the screen
  • [x] Pinch Zoom is available
  • [x] Standard scrollbars are available
  • [x] Each column width value will be automatically adjusted to fit the largest cell in the column.
  • [x] Each row height value will be automatically adjusted to fit the largest cell in the row.
  • [x] Support for API 16 upwards

Feature TODO list

  • [x] Nothing is clickable in the table yet.
  • [x] Scale around pinch center.
  • [x] Corner layout location and layout direction to support Right to Left Languages
  • [x] Some type of column span (Nested Tables) support
  • [x] Making the fixed headers optional (at least one of each is required at the moment)
  • [x] Documentation
  • [x] Automated Tests
  • [x] Probably lots more

Limitations

  • [x] As per Android's TableLayout constructing/drawing very large tables takes some time.

What's new

You can check new implementations of TableView on the release page.

Installation

To use this library in your Android project

Add Maven Central to the project's build.gradle :

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

Add the following dependency into your module's build.gradle:

dependencies {
    implementation 'com.github.Zardozz:fixedheadertablelayout:0.0.0.2'
}