Skip to content

slaviboy/InfiniteGridView

Repository files navigation

InfiniteGridView Android

Simple library for creating infinite grid written in Kotlin

cookie monster

About

The library contains a InfiniteGridView that is used to create a infinite grid that can have transformations applied to it, such as rotation, translation and scaling using the finger gestures made by the user. It is generating, only the lines that are visible by the user and displayed in the view. Lines are generated in real time using simple math algorithms that can be found on the official Wiki page.

Platform API Download

Add to your project

Add the jitpack maven repository

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

Add the dependency

dependencies {
  implementation 'com.github.slaviboy:InfiniteGridView:v0.1.0'
}

How to use

To create a InfiniteGridView just include the code below in your main activity layout file.

<com.slaviboy.infinitegridview.InfiniteGridView
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="#46ADE8"
     app:horizontalNormalLinesColor="#ffffff"
     app:horizontalThickLinesColor="#ffffff"
     app:verticalNormalLinesColor="#ffffff"
     app:verticalThickLinesColor="#ffffff" />

For supported properties and more about how to customize the grid, check the section on the Wiki page.

About

Create infinite grid in Android in the simplest way possible.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages