Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d9db8e4 authored by Andrew Sapperstein's avatar Andrew Sapperstein
Browse files

Added getNumColumns function to GridView.java.

Change-Id: I1cec19c77d0ee47278d93c6b0a112edae777e4e9
parent 76922d2f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -208207,6 +208207,17 @@
 visibility="public"
>
</method>
<method name="getNumColumns"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getStretchMode"
 return="int"
 abstract="false"
+14 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.util.AttributeSet;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewDebug;
import android.view.ViewGroup;
import android.view.SoundEffectConstants;
import android.view.animation.GridLayoutAnimationController;
@@ -1775,6 +1776,19 @@ public class GridView extends AbsListView {
        }
    }
    
    /**
     * Get the number of columns in the grid. 
     * Returns {@link #AUTO_FIT} if the Grid has never been laid out.
     *
     * @attr ref android.R.styleable#GridView_numColumns
     * 
     * @see #setNumColumns(int)
     */
    @ViewDebug.ExportedProperty
    public int getNumColumns() {  
        return mNumColumns;
    }

    /**
     * Make sure views are touching the top or bottom edge, as appropriate for
     * our gravity