IT. Expert System.

Android Reference

ListScenario


android.util

Class ListScenario

    • Field Detail

      • mItemsFocusable

        protected boolean mItemsFocusable
    • Constructor Detail

      • ListScenario

        public ListScenario()
    • Method Detail

      • getListView

        public ListView getListView()
      • getScreenHeight

        protected int getScreenHeight()
      • init

        protected abstract void init(ListScenario.Params params)
        How each scenario customizes its behavior.
        Parameters:
        params -
      • positionSelected

        protected void positionSelected(int positon)
        Override this if you want to know when something has been selected (perhaps more importantly, that AdapterView.OnItemSelectedListener has been triggered).
      • nothingSelected

        protected void nothingSelected()
        Override this if you want to know that nothing is selected.
      • positionClicked

        protected void positionClicked(int position)
        Override this if you want to know when something has been clicked (perhaps more importantly, that AdapterView.OnItemClickListener has been triggered).
      • positionLongClicked

        protected void positionLongClicked(int position)
        Override this if you want to know when something has been long clicked (perhaps more importantly, that AdapterView.OnItemLongClickListener has been triggered).
      • getListViewContainer

        protected LinearLayout getListViewContainer()
        Returns the LinearLayout containing the ListView in this scenario.
        Returns:
        The LinearLayout in which the ListView is held.
      • enableLongPress

        public void enableLongPress()
        Attaches a long press listener. You can find out which views were clicked by calling getLongClickedPosition().
      • createListView

        protected ListView createListView()
        Returns:
        The newly created ListView widget.
      • createParams

        protected ListScenario.Params createParams()
        Returns:
        The newly created Params object.
      • setAdapter

        protected void setAdapter(ListView listView)
        Sets an adapter on a ListView.
        Parameters:
        listView - The ListView to set the adapter on.
      • readAndValidateParams

        protected void readAndValidateParams(ListScenario.Params params)
        Read in and validate all of the params passed in by the scenario.
        Parameters:
        params -
      • getValueAtPosition

        public final String getValueAtPosition(int position)
      • getHeightForPosition

        public int getHeightForPosition(int position)
        Returns:
        The height that will be set for a particular position.
      • getHeaderValue

        public final String getHeaderValue()
        Returns:
        The contents of the header above the list.
        Throws:
        IllegalArgumentException - if there is no header.
      • setHeaderValue

        protected final void setHeaderValue(String value)
        Parameters:
        value - What to put in the header text view
        Throws:
        IllegalArgumentException - if there is no header.
      • createView

        protected View createView(int position,
                      ViewGroup parent,
                      int desiredHeight)
        Create a view for a list item. Override this to create a custom view beyond the simple focusable / unfocusable text view.
        Parameters:
        position - The position.
        parent - The parent
        desiredHeight - The height the view should be to respect the desired item to screen height ratio.
        Returns:
        a view for the list.
      • convertView

        public View convertView(int position,
                       View convertView,
                       ViewGroup parent)
        Convert a non-null view.
      • setClickedPosition

        public void setClickedPosition(int clickedPosition)
      • getClickedPosition

        public int getClickedPosition()
      • setLongClickedPosition

        public void setLongClickedPosition(int longClickedPosition)
      • getLongClickedPosition

        public int getLongClickedPosition()
      • requestRectangleOnScreen

        public void requestRectangleOnScreen(int childIndex,
                                    Rect rect)
        Have a child of the list view call View.requestRectangleOnScreen(android.graphics.Rect).
        Parameters:
        childIndex - The index into the viewgroup children (i.e the children that are currently visible).
        rect - The rectangle, in the child's coordinates.
      • getItemViewType

        public int getItemViewType(int position)
        Return an item type for the specified position in the adapter. Override if your adapter creates more than one type.
      • getViewTypeCount

        public int getViewTypeCount()
        Return the number of types created by the adapter. Override if your adapter creates more than one type.
      • getConvertMisses

        public int getConvertMisses()
        Returns:
        The number of times convertView failed


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: 11761 / 248549878. Delta: 0.05521 с