|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.solovyev.android.Views
public final class Views
User: serso Date: 2/2/13 Time: 5:57 PM
| Nested Class Summary | |
|---|---|
static interface |
Views.ViewProcessor<V>
Interface to process view. |
| Method Summary | ||
|---|---|---|
static void |
addTab(android.content.Context context,
android.widget.TabHost tabHost,
String tabId,
int tabCaptionId,
Class<? extends android.app.Activity> activityClass)
Method adds tab to the tabHost element |
|
static void |
centerAndWrapTabsFor(android.widget.TabHost tabHost)
Method center the tabs' contents on specified tabHost elements. |
|
static int |
getPointerCountFromMotionEvent(android.view.MotionEvent event)
|
|
static int |
getScreenOrientation(android.app.Activity activity)
|
|
static float |
getXFromMotionEvent(android.view.MotionEvent event,
int pointer)
|
|
static float |
getYFromMotionEvent(android.view.MotionEvent event,
int pointer)
|
|
static boolean |
isLayoutSizeAtLeast(int size,
android.content.res.Configuration configuration)
|
|
static void |
processViews(android.view.View view,
Views.ViewProcessor<android.view.View> viewProcessor)
Method runs through view and all it's children recursively and process them via viewProcessor |
|
static
|
processViewsOfType(android.view.View view,
Class<T> viewClass,
Views.ViewProcessor<T> viewProcessor)
Method runs through view and all it's children recursively and process all instances of viewClass via viewProcessor |
|
static int |
toPixels(android.util.DisplayMetrics dm,
float dps)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void processViews(@Nonnull
android.view.View view,
@Nonnull
Views.ViewProcessor<android.view.View> viewProcessor)
view - parent view to be processed, if view is ViewGroup then all it's children will be processedviewProcessor - object which processes views
public static <T> void processViewsOfType(@Nonnull
android.view.View view,
@Nonnull
Class<T> viewClass,
@Nonnull
Views.ViewProcessor<T> viewProcessor)
view - parent view to be processed, if view is ViewGroup then all it's children will be processedviewClass - only instances of specified class will be processedviewProcessor - object which processes views
public static void centerAndWrapTabsFor(@Nonnull
android.widget.TabHost tabHost)
tabHost - tabHost element
public static void addTab(@Nonnull
android.content.Context context,
@Nonnull
android.widget.TabHost tabHost,
@Nonnull
String tabId,
int tabCaptionId,
@Nonnull
Class<? extends android.app.Activity> activityClass)
context - activity which users tabHosttabHost - tabHost elementtabId - id of tab to be addedtabCaptionId - string id of tab to be addedactivityClass - activity class to be invoked if the tab is pressed
public static int toPixels(@Nonnull
android.util.DisplayMetrics dm,
float dps)
public static int getScreenOrientation(@Nonnull
android.app.Activity activity)
public static boolean isLayoutSizeAtLeast(int size,
@Nonnull
android.content.res.Configuration configuration)
public static int getPointerCountFromMotionEvent(@Nonnull
android.view.MotionEvent event)
public static float getXFromMotionEvent(@Nonnull
android.view.MotionEvent event,
int pointer)
public static float getYFromMotionEvent(@Nonnull
android.view.MotionEvent event,
int pointer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||