Loading api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -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" core/java/android/widget/GridView.java +14 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading Loading
api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -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"
core/java/android/widget/GridView.java +14 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading