API Diff Specification | |
To Version: | Android SDK 0.9_r1 |
From Version: | Android SDK m5-rc14 |
Generated | 2008.08.14 15:44 |
Added Constructors | |
---|---|
Context, |
Constructor that is called when inflating a view from XML. |
Context, |
Perform inflation from XML and apply a class-specific base style. |
Removed Methods | |
---|---|
boolean awakenScrollBars() |
Trigger the scrollbars to draw. |
boolean awakenScrollBars(int ) |
Trigger the scrollbars to draw. |
Bitmap copyWindowBitmap() |
Return a copy of the bitmap holding the overall contents of the window this view is attached to. |
void dispatchFreeze(SparseArray<Parcelable> ) |
Called by .freeze to store the icicles for this view and its children. |
void dispatchThaw(SparseArray<Parcelable> ) |
Called by .thaw to retrieve the icicles for this view and its children. |
void freeze(SparseArray<Parcelable> ) |
Store this view hierarchy's frozen state into the given container. |
void getAbsoluteLocationOnScreen(int[] ) |
Computes the coordinates of this view on the screen. |
boolean getBlockDescendantFocus() |
Indicated if this view will block its descendants from receiving or requesting focus. |
boolean getBlockUnmatchedKeyUps() |
Indicates whether this view will receive key up events for which it did not receive the corresponding key down. |
int getFocusType() |
Gets the conditions under which this view will take focus. |
long getInstanceCount() |
|
long getViewRootInstanceCount() |
|
void getWindowFrame(Rect ) |
Returns the frame surrounding the root of this view's window tree. |
IWindowSession getWindowSession() |
Retrieve private session object this view hierarchy is using to communicate with the window manager. |
boolean hasBackground() |
Indicates whether this view has a background or not. |
boolean inTouchMode() |
Returns whether the device is currently in touch mode. |
boolean isFreezeDisabled() |
Indicates whether this view will save its state in an icicle (that is, whether its onFreeze() method will be called). |
void onDrawBackground(Canvas ) |
Draws this view's background, if any. |
Parcelable onFreeze() |
Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state. |
void onPopulateContextMenu(ContextMenu ) |
Views should implement this if the view itself is going to add items to the context menu. |
void onThaw(Parcelable ) |
Hook allowing a view to re-apply a representation of its internal state that had previously been generated by .onFreeze. |
void populateContextMenu(ContextMenu ) |
Show the context menu for this view |
void press(boolean ) |
Calling this method sets the View's internal state to "pressed". |
void setBackground(Drawable ) |
Set the background to a given Drawable, or remove the background. |
void setBackground(int ) |
Set the background to a given resource. |
void setBlockDescendantFocus(boolean ) |
Sets whether this view will block its descendants from receiving or requesting focus. |
void setBlockUnmatchedKeyUps(boolean ) |
Sets whether this view wants to receive key up events for which it did not receive the corresponding key down. |
void setFocusType(int ) |
Sets the circumstances under which this view will take focus. |
void setFreezeDisabled(boolean ) |
Controls whether freezing of this view's state into an icicle is disabled (that is, whether its onFreeze() method will be called). |
void setOnPopulateContextMenuListener(OnPopulateContextMenuListener ) |
Register a callback to be invoked when the context menu for this view is being built. |
void setPreferredHeight(int ) |
Set the preferred height for this view. |
void setPreferredWidth(int ) |
Set the preferred width for this view. |
void thaw(SparseArray<Parcelable> ) |
Restore this view hierarchy's frozen state from the given container. |
void unpress() |
Calling this method reverts the View's internal state from a previously set "pressed" state. |
Added Methods | |
---|---|
void addFocusables(ArrayList<View>, |
Add any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views. |
void addTouchables(ArrayList<View> ) |
Add any touchable views that are descendants of this view (possibly including this view if it is touchable itself) to views. |
void cancelLongPress() |
Cancels a pending long press. |
void createContextMenu(ContextMenu ) |
Show the context menu for this view. |
void destroyDrawingCache() |
Frees the resources used by the drawing cache. |
boolean dispatchKeyShortcutEvent(KeyEvent ) |
Dispatches a key shortcut event. |
void dispatchRestoreInstanceState(SparseArray<Parcelable> ) |
Called by .restoreHierarchyState to retrieve the state for this view and its children. |
void dispatchSaveInstanceState(SparseArray<Parcelable> ) |
Called by .saveHierarchyState to store the state for this view and its children. |
void dispatchSetPressed(boolean ) |
Dispatch setPressed to all of this View's children. |
void dispatchSetSelected(boolean ) |
Dispatch setSelected to all of this View's children. |
boolean fitSystemWindows(Rect ) |
Apply the insets for system windows to this view, if the FITS_SYSTEM_WINDOWS flag is set |
void forceLayout() |
Forces this view to be laid out during the next layout pass. |
int getDrawingCacheBackgroundColor() |
@see #setDrawingCacheBackgroundColor(int) |
boolean getKeepScreenOn() |
Returns whether the screen should remain on, corresponding to the current value of .KEEP_SCREEN_ON. |
int getNextFocusDownId() |
@return The user specified next focus ID. |
int getNextFocusLeftId() |
@return The user specified next focus ID. |
int getNextFocusRightId() |
@return The user specified next focus ID. |
int getNextFocusUpId() |
@return The user specified next focus ID. |
int getScrollBarStyle() |
Returns the current scrollbar style. |
int getSolidColor() |
Override this if your view is known to always be drawn on top of a solid color background, and needs to draw fading edges. |
int getSuggestedMinimumHeight() |
Returns the suggested minimum height that the view should use. |
int getSuggestedMinimumWidth() |
Returns the suggested minimum width that the view should use. |
TouchDelegate getTouchDelegate() |
Gets the TouchDelegate for this View. |
ArrayList<View> getTouchables() |
Find and return all touchable views that are descendants of this view, possibly including this view if it is touchable itself. |
ViewTreeObserver getViewTreeObserver() |
Returns the ViewTreeObserver for this view's hierarchy. |
int getWindowAttachCount() |
@return The number of times this view has been attached to a window |
boolean hasFocusable() |
Returns true if this view is focusable or if it contains a reachable View for which .hasFocusable() returns true. |
View inflate(Context, |
Inflate a view from an XML resource. |
boolean isDuplicateParentStateEnabled() |
Indicates whether this duplicates its drawable state from its parent. |
boolean isInTouchMode() |
Returns whether the device is currently in touch mode. |
boolean isLongClickable() |
Indicates whether this view reacts to long click events or not. |
boolean isSaveEnabled() |
Indicates whether this view will save its state (that is, whether its .onSaveInstanceState method will be called). |
boolean isShown() |
Returns the visibility of this view and all of its ancestors |
void onAnimationEnd() |
Invoked by a parent ViewGroup to notify the end of the animation currently associated with this view. |
void onAnimationStart() |
Invoked by a parent ViewGroup to notify the start of the animation currently associated with this view. |
void onCreateContextMenu(ContextMenu ) |
Views should implement this if the view itself is going to add items to the context menu. |
boolean onKeyShortcut(int, |
Called when an unhandled key shortcut event occurs. |
void onRestoreInstanceState(Parcelable ) |
Hook allowing a view to re-apply a representation of its internal state that had previously been generated by .onSaveInstanceState. |
Parcelable onSaveInstanceState() |
Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state. |
boolean onSetAlpha(int ) |
Invoked if there is a Transform that involves alpha. |
void postInvalidate(int, |
Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop. |
void postInvalidateDelayed(long, |
Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop. |
boolean removeCallbacks(Runnable ) |
Removes the specified Runnable from the message queue. |
boolean requestFocusFromTouch() |
Call this to try to give focus to a specific view or to one of its descendants. |
void restoreHierarchyState(SparseArray<Parcelable> ) |
Restore this view hierarchy's frozen state from the given container. |
void saveHierarchyState(SparseArray<Parcelable> ) |
Store this view hierarchy's frozen state into the given container. |
void setBackgroundDrawable(Drawable ) |
Set the background to a given Drawable, or remove the background. |
void setBackgroundResource(int ) |
Set the background to a given resource. |
void setDrawingCacheBackgroundColor(int ) |
Setting a solid background color for the drawing cache's bitmaps will improve perfromance and memory usage. |
void setDuplicateParentStateEnabled(boolean ) |
Enables or disables the duplication of the parent's state into this view. |
void setKeepScreenOn(boolean ) |
Controls whether the screen should remain on, modifying the value of .KEEP_SCREEN_ON. |
void setLongClickable(boolean ) |
Enables or disables long click events for this view. |
void setMinimumHeight(int ) |
Sets the minimum height of the view. |
void setMinimumWidth(int ) |
Sets the minimum width of the view. |
void setNextFocusDownId(int ) |
Set the id of the view to use for the next focus |
void setNextFocusLeftId(int ) |
Set the id of the view to use for the next focus |
void setNextFocusRightId(int ) |
Set the id of the view to use for the next focus |
void setNextFocusUpId(int ) |
Set the id of the view to use for the next focus |
void setOnCreateContextMenuListener(OnCreateContextMenuListener ) |
Register a callback to be invoked when the context menu for this view is being built. |
void setOnTouchListener(OnTouchListener ) |
Register a callback to be invoked when a touch event is sent to this view. |
void setPressed(boolean ) |
Sets the pressed that for this view. |
void setSaveEnabled(boolean ) |
Controls whether the saving of this view's state is enabled (that is, whether its .onSaveInstanceState method will be called). |
void setScrollBarStyle(int ) |
Specify the style of the scrollbars. |
void setTouchDelegate(TouchDelegate ) |
Sets the TouchDelegate for this View. |
boolean showContextMenu() |
Bring up the context menu for this view. |
Changed Methods | ||
---|---|---|
ContextMenuInfo getContextMenuInfo() |
Change in return type from Object to ContextMenuInfo . |
Views should implement this if they have extra information to associate with the context menu. |
int getDefaultSize(int, |
Change from non-static to static. |
Utility to return a default size. |
ArrayList<View> getFocusables(int ) |
Change in signature from void to int . |
Find and return all focusable views that are descendants of this view, possibly including this view if it is focusable itself. |
int getHorizontalScrollbarHeight() |
Change of visibility from public to protected. |
Returns the height of the horizontal scrollbar. |
Resources getResources() |
Change in return type from android.content.Resources to android.content.res.Resources . |
Returns the resources associated with this view. |
void initializeFadingEdge(TypedArray ) |
Change in signature from StyledAttributes to TypedArray . |
Initializes the fading edges from a given set of styled attributes. |
void initializeScrollbars(TypedArray ) |
Change in signature from StyledAttributes to TypedArray . |
Initializes the scrollbars from a given set of styled attributes. |
int resolveSize(int, |
Change from non-static to static. |
Utility to reconcile a desired size with constraints imposed by a MeasureSpec. |
void setFocusable(boolean ) |
Change from final to non-final. |
Set whether this view can receive the focus. |
void setFocusableInTouchMode(boolean ) |
Change from final to non-final. |
Set whether this view can receive focus while in touch mode. |
void setWillNotCacheDrawing(boolean ) |
Change of visibility from protected to public. |
When a View's drawing cache is enabled, drawing is redirected to an offscreen bitmap. |
boolean willNotCacheDrawing() |
Change of visibility from protected to public. |
Returns whether or not this View can cache its drawing or not. |
Added Fields | |
---|---|
int[] EMPTY_STATE_SET |
Indicates the view has no states set. |
int[] ENABLED_FOCUSED_SELECTED_STATE_SET |
Indicates the view is enabled, focused and selected. |
int[] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is enabled, focused, selected and its window has the focus. |
int[] ENABLED_FOCUSED_STATE_SET |
Indicates the view is enabled and has the focus. |
int[] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is enabled, focused and its window has the focus. |
int[] ENABLED_SELECTED_STATE_SET |
Indicates the view is enabled and selected. |
int[] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is enabled, selected and its window has the focus. |
int[] ENABLED_STATE_SET |
Indicates the view is enabled. |
int[] ENABLED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is enabled and that its window has focus. |
int[] FOCUSED_SELECTED_STATE_SET |
Indicates the view is focused and selected. |
int[] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is focused, selected and its window has the focus. |
int[] FOCUSED_STATE_SET |
Indicates the view is focused. |
int[] FOCUSED_WINDOW_FOCUSED_STATE_SET |
Indicates the view has the focus and that its window has the focus. |
int KEEP_SCREEN_ON |
View flag indicating that the screen should remain on while the window containing this view is visible to the user. |
int[] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET |
Indicates the view is pressed, enabled, focused and selected. |
int[] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, enabled, focused, selected and its window has the focus. |
int[] PRESSED_ENABLED_FOCUSED_STATE_SET |
Indicates the view is pressed, enabled and focused. |
int[] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, enabled, focused and its window has the focus. |
int[] PRESSED_ENABLED_SELECTED_STATE_SET |
Indicates the view is pressed, enabled and selected. |
int[] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, enabled, selected and its window has the focus. |
int[] PRESSED_ENABLED_STATE_SET |
Indicates the view is pressed and enabled. |
int[] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, enabled and its window has the focus. |
int[] PRESSED_FOCUSED_SELECTED_STATE_SET |
Indicates the view is pressed, focused and selected. |
int[] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, focused, selected and its window has the focus. |
int[] PRESSED_FOCUSED_STATE_SET |
Indicates the view is pressed and focused. |
int[] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, focused and its window has the focus. |
int[] PRESSED_SELECTED_STATE_SET |
Indicates the view is pressed and selected. |
int[] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed, selected and its window has the focus. |
int[] PRESSED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is pressed and its window has the focus. |
int SCROLLBARS_INSIDE_INSET |
The scrollbar style to display the scrollbars inside the padded area, increasing the padding of the view. |
int SCROLLBARS_INSIDE_OVERLAY |
The scrollbar style to display the scrollbars inside the content area, without increasing the padding. |
int SCROLLBARS_OUTSIDE_INSET |
The scrollbar style to display the scrollbars at the edge of the view, increasing the padding of the view. |
int SCROLLBARS_OUTSIDE_OVERLAY |
The scrollbar style to display the scrollbars at the edge of the view, without increasing the padding. |
int[] SELECTED_STATE_SET |
Indicates the view is selected. |
int[] SELECTED_WINDOW_FOCUSED_STATE_SET |
Indicates the view is selected and that its window has the focus. |
int[] WINDOW_FOCUSED_STATE_SET |
Indicates the view's window has focus. |
OnCreateContextMenuListener mOnCreateContextMenuListener |
Listener used to build the context menu. |
int mUserPaddingBottom |
Cache the paddingBottom set by the user to append to the scrollbar's size. |
int mUserPaddingRight |
Cache the paddingRight set by the user to append to the scrollbar's size. |
©2008 Google - Code Home - Site Terms of Service - Privacy Policy |