Skip to content

Instantly share code, notes, and snippets.

@unrarp
unrarp / GridLineView.java
Created November 6, 2013 14:27
Custom Android view that divides its layout into a grid by drawing equally spaced lines both horizontally and vertically
package com.rahul.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
public class GridLineView extends View {