IT. Expert System.

Android Reference

ListScenario.Params


android.util

Class ListScenario.Params

  • Enclosing class:
    ListScenario


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

      • mMustFillScreen

        public boolean mMustFillScreen
    • Constructor Detail

      • ListScenario.Params

        public ListScenario.Params()
    • Method Detail

      • setNumItems

        public ListScenario.Params setNumItems(int numItems)
        Set the number of items in the list.
      • setItemsFocusable

        public ListScenario.Params setItemsFocusable(boolean itemsFocusable)
        Set whether the items are focusable.
      • setStartingSelectionPosition

        public ListScenario.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 ListScenario.Params setItemScreenSizeFactor(double itemScreenSizeFactor)
        Set the factor that determines how tall each item is in relation to the screen height.
      • setPositionScreenSizeFactorOverride

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

        public ListScenario.Params setPositionUnselectable(int position)
        Set a position as unselectable (a.k.a a separator)
        Parameters:
        position -
        Returns:
      • setPositionsUnselectable

        public ListScenario.Params setPositionsUnselectable(int... positions)
        Set positions as unselectable (a.k.a a separator)
      • includeHeaderAboveList

        public ListScenario.Params includeHeaderAboveList(boolean includeHeader)
        Include a header text view above the list.
        Parameters:
        includeHeader -
        Returns:
      • setStackFromBottom

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

        public ListScenario.Params setMustFillScreen(boolean fillScreen)
        Sets whether the sum of the height of the list items must be at least the height of the list view.
      • setFadingEdgeScreenSizeFactor

        public ListScenario.Params setFadingEdgeScreenSizeFactor(double fadingEdgeScreenSizeFactor)
        Set the factor for the fading edge length.
      • setHeaderViewCount

        public ListScenario.Params setHeaderViewCount(int headerViewCount)
        Set the number of header views to appear within the list
      • setHeaderFocusable

        public ListScenario.Params setHeaderFocusable(boolean headerFocusable)
        Set whether the headers should be focusable.
        Parameters:
        headerFocusable - Whether the headers should be focusable (i.e created as edit texts rather than text views).
      • setFooterViewCount

        public ListScenario.Params setFooterViewCount(int footerViewCount)
        Set the number of footer views to appear within the list
      • setConnectAdapter

        public ListScenario.Params setConnectAdapter(boolean connectAdapter)
        Sets whether the ListScenario will automatically set the adapter on the list view. If this is false, the client MUST set it manually (this is useful when adding headers to the list view, which must be done before the adapter is set).


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: 1446 / 158768818. Delta: 0.03570 с