IT. Expert System.

Android Reference

GridScenario.Params


android.util

Class GridScenario.Params

  • Enclosing class:
    GridScenario


    public static class GridScenario.Params
    extends Object
    Better way to pass in optional params than a honkin' paramater list :)
    • Constructor Detail

      • GridScenario.Params

        public GridScenario.Params()
    • Method Detail

      • setNumItems

        public GridScenario.Params setNumItems(int numItems)
        Set the number of items in the grid.
      • setStartingSelectionPosition

        public GridScenario.Params setStartingSelectionPosition(int startingSelectionPosition)
        Set the position that starts selected.
        Parameters:
        startingSelectionPosition - The selected position within the adapter's data set. Pass -1 if you do not want to force a selection.
        Returns:
      • setItemScreenSizeFactor

        public GridScenario.Params setItemScreenSizeFactor(double itemScreenSizeFactor)
        Set the factor that determines how tall each item is in relation to the screen height.
      • setPositionScreenSizeFactorOverride

        public GridScenario.Params setPositionScreenSizeFactorOverride(int position,
                                                              double itemScreenSizeFactor)
        Override the item screen size factor for a particular item. Useful for creating grids with non-uniform item height.
        Parameters:
        position - The position in the grid.
        itemScreenSizeFactor - The screen size factor to use for the height.
      • setStackFromBottom

        public GridScenario.Params setStackFromBottom(boolean stackFromBottom)
        Sets the stacking direction
        Parameters:
        stackFromBottom -
        Returns:
      • setMustFillScreen

        public GridScenario.Params setMustFillScreen(boolean fillScreen)
        Sets whether the sum of the height of the grid items must be at least the height of the grid view.
      • setColumnWidth

        public GridScenario.Params setColumnWidth(int requestedWidth)
        Sets the individual width of each column.
        Parameters:
        requestedWidth - the width in pixels of the column
      • setNumColumns

        public GridScenario.Params setNumColumns(int numColumns)
        Sets the number of columns in the grid.
      • setStretchMode

        public GridScenario.Params setStretchMode(int stretchMode)
        Sets the stretch mode.
      • setVerticalSpacing

        public GridScenario.Params setVerticalSpacing(int verticalSpacing)
        Sets the spacing between rows in the grid


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 229 / . Delta: 0.02618 с