app/src/main/java/com/goatsandtigers/mazezam/SquareTileView.java
/**
     * Ensures the height of the view matches its width.
     * @param l
     * @param t
     * @param r
     * @param b
     */
Ensures the height of the view matches its width.
Ensures the height of the view matches its width .
@Override
    public void layout(int l, int t, int r, int b) {
        super.layout(l, t, r, b);
        int width = r - l;
        if (width != b - t) {
            setLayoutParams(new LinearLayout.LayoutParams(width, width));
        }
    }
@ Override public void layout ( int l , int t , int r , int b ) { super . layout ( l , t , r , b ) ; int width = r - l ; if ( width != b - t ) { setLayoutParams ( new LinearLayout . LayoutParams ( width , width ) ) ; } }
Ensures the height of the view matches its width.
Ensures the height of the view matches its width .