public class

TableView

extends AbstractTableView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.htc.view.table.AbstractAdapterView<T extends android.widget.Adapter>
         ↳ com.htc.view.table.AbstractTableView
           ↳ com.htc.view.table.TableView
Known Direct Subclasses

Class Overview

A view that shows items in two-dimensional scrolling grid. The items in the grid come from the AbstractTableView associated with this view.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class com.htc.view.table.AbstractTableView
From class android.view.ViewGroup
From class android.view.View
Public Constructors
TableView(Context context)
TableView(Context context, AttributeSet attrs)
TableView(Context context, AttributeSet attrs, int defStyle)
Public Methods
void setCenterView(int position)
void setCenterView(int position, int parentViewHeightOrWidth)
void setHorizontalSpacing(int horizontalSpacing)
Sets the amount of horizontal (x) spacing to place between each item in the grid.
void setNumColumnRows(int numColumnRows)
The number of fixed columns or rows.
void setVerticalSpacing(int verticalSpacing)
Sets the amount of vertical (y) spacing to place between each item in the grid.
Protected Methods
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class com.htc.view.table.AbstractTableView
From class com.htc.view.table.AbstractAdapterView
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.graphics.drawable.Drawable.Callback2
From interface android.text.TextWatcher
From interface android.view.GestureDetector.OnGestureListener
From interface android.view.HtcIfViewGroup
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.ViewTreeObserver.OnGlobalLayoutListener
From interface android.view.ViewTreeObserver.OnTouchModeChangeListener
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.Filter.FilterListener

Public Constructors

public TableView (Context context)

Since: API Level 2.0

public TableView (Context context, AttributeSet attrs)

Since: API Level 2.0

public TableView (Context context, AttributeSet attrs, int defStyle)

Since: API Level 2.0

Public Methods

public void setCenterView (int position)

Since: API Level 2.0

public void setCenterView (int position, int parentViewHeightOrWidth)

Since: API Level 2.0

public void setHorizontalSpacing (int horizontalSpacing)

Since: API Level 2.0

Sets the amount of horizontal (x) spacing to place between each item in the grid.

Parameters
horizontalSpacing The amount of horizontal space between items, in pixels.

public void setNumColumnRows (int numColumnRows)

Since: API Level 2.0

The number of fixed columns or rows. It depends on 'scrollOrientation'. If 'scrollDirection' is VERTICAL, it's the number of fixed columns ; otherwise, it's the number of rows.

public void setVerticalSpacing (int verticalSpacing)

Since: API Level 2.0

Sets the amount of vertical (y) spacing to place between each item in the grid.

Parameters
verticalSpacing The amount of vertical space between items, in pixels.

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Since: API Level 4.9