public class ViewUtils
extends java.lang.Object
getListViewHeightBasedOnChildren(ListView)
getAbsListViewHeightBasedOnChildren(AbsListView)
setViewHeight(View, int)
set view heightsetListViewHeightBasedOnChildren(ListView)
setAbsListViewHeightBasedOnChildren(AbsListView)
getGridViewVerticalSpacing(GridView)
get GridView vertical spacingsetSearchViewOnClickListener(View, OnClickListener)
Constructor and Description |
---|
ViewUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getAbsListViewHeightBasedOnChildren(AbsListView view)
get AbsListView height according to every children
|
static int |
getGridViewVerticalSpacing(GridView view)
get GridView vertical spacing
|
static int |
getListViewHeightBasedOnChildren(ListView view)
get ListView height according to every children
|
static void |
setAbsListViewHeightBasedOnChildren(AbsListView view)
set AbsListView height which is calculated by
getAbsListViewHeightBasedOnChildren(AbsListView) |
static void |
setListViewHeightBasedOnChildren(ListView view)
set ListView height which is calculated by
getListViewHeightBasedOnChildren(ListView) |
static void |
setSearchViewOnClickListener(View v,
OnClickListener listener)
set SearchView OnClickListener
|
static void |
setViewHeight(View view,
int height)
set view height
|
public static int getListViewHeightBasedOnChildren(ListView view)
view
- public static int getGridViewVerticalSpacing(GridView view)
view
- public static int getAbsListViewHeightBasedOnChildren(AbsListView view)
view
- public static void setViewHeight(View view, int height)
view
- height
- public static void setListViewHeightBasedOnChildren(ListView view)
getListViewHeightBasedOnChildren(ListView)
view
- public static void setAbsListViewHeightBasedOnChildren(AbsListView view)
getAbsListViewHeightBasedOnChildren(AbsListView)
view
- public static void setSearchViewOnClickListener(View v, OnClickListener listener)
v
- listener
-