android.view
public
static
interface
android.view.ViewTreeObserver.OnPreDrawListener
android.view.ViewTreeObserver.OnPreDrawListener |
|
Interface definition for a callback to be invoked when the view tree is about to be drawn.
Known Indirect Subclasses
AutoCompleteTextView,
Button,
CheckBox,
CheckedTextView,
Chronometer,
CompoundButton,
DigitalClock,
EditText,
MultiAutoCompleteTextView,
RadioButton,
TextView,
ToggleButton
AutoCompleteTextView |
An editable text view that shows completion suggestions automatically
while the user is typing. |
Button |
Button represents a push-button widget. |
CheckBox |
A checkbox is a specific type of two-states button that can be either
checked or unchecked. |
CheckedTextView |
An extension to TextView that supports the Checkable interface. |
Chronometer |
Class that implements a simple timer. |
CompoundButton |
A button with two states, checked and unchecked. |
DigitalClock |
Like AnalogClock, but digital. |
EditText |
EditText is a thin veneer over TextView that configures itself
to be editable. |
MultiAutoCompleteTextView |
An editable text view, extending AutoCompleteTextView, that
can show completion suggestions for the substring of the text where
the user is typing instead of necessarily for the entire thing. |
RadioButton |
A radio button is a two-states button that can be either checked or
unchecked. |
TextView |
Displays text to the user and optionally allows them to edit it. |
ToggleButton |
ToggleButton is a widget that displays checked/unchecked states as a button
with a "light" indicator and by default accompanied with the text "ON" or "OFF". |
Summary
Details
Public Methods
public
boolean
onPreDraw()
Callback method to be invoked when the view tree is about to be drawn. At this point, all
views in the tree have been measured and given a frame. Clients can use this to adjust
their scroll bounds or even to request a new layout before drawing occurs.
Returns
- Return true to proceed with the current drawing pass, or false to cancel.