com.android.ide.common.rendering.api
Enum ViewType

java.lang.Object
  extended by java.lang.Enum<ViewType>
      extended by com.android.ide.common.rendering.api.ViewType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ViewType>

public enum ViewType
extends java.lang.Enum<ViewType>

Lists various types of a view. Used as a possible return value of ViewInfo.getViewType()


Enum Constant Summary
ACTION_BAR_MENU
          A menu item in the action bar.
ACTION_BAR_OVERFLOW
          The overflow menu button in the action bar.
ACTION_BAR_OVERFLOW_MENU
          A menu item in the action bar overflow popup.
NAVIGATION_BAR_BACK
          The back button in the Navigation Bar.
NAVIGATION_BAR_HOME
          The home button in the Navigation Bar.
NAVIGATION_BAR_RECENTS
          The recents button in the Navigation Bar.
SYSTEM_UNKNOWN
          A view added by the framework.
USER
          A view that is part of the user's layout.
 
Method Summary
static ViewType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ViewType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYSTEM_UNKNOWN

public static final ViewType SYSTEM_UNKNOWN
A view added by the framework. No additional info about the view is available.


USER

public static final ViewType USER
A view that is part of the user's layout.


ACTION_BAR_OVERFLOW

public static final ViewType ACTION_BAR_OVERFLOW
The overflow menu button in the action bar.


ACTION_BAR_MENU

public static final ViewType ACTION_BAR_MENU
A menu item in the action bar.


ACTION_BAR_OVERFLOW_MENU

public static final ViewType ACTION_BAR_OVERFLOW_MENU
A menu item in the action bar overflow popup.


NAVIGATION_BAR_BACK

public static final ViewType NAVIGATION_BAR_BACK
The back button in the Navigation Bar.


NAVIGATION_BAR_HOME

public static final ViewType NAVIGATION_BAR_HOME
The home button in the Navigation Bar.


NAVIGATION_BAR_RECENTS

public static final ViewType NAVIGATION_BAR_RECENTS
The recents button in the Navigation Bar.

Method Detail

values

public static ViewType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ViewType c : ViewType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ViewType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null