android.webkit
Class WebView
java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.AbsoluteLayout
android.webkit.WebView
- All Implemented Interfaces:
- Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewGroup.OnHierarchyChangeListener, ViewManager, ViewParent, ViewTreeObserver.OnGlobalFocusChangeListener
public class WebView
- extends AbsoluteLayout
- implements ViewTreeObserver.OnGlobalFocusChangeListener, ViewGroup.OnHierarchyChangeListener
Fields inherited from class android.view.View |
DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, INVISIBLE, KEEP_SCREEN_ON, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET |
Method Summary |
void |
addJavascriptInterface(Object obj,
String interfaceName)
|
boolean |
canGoBack()
|
boolean |
canGoBackOrForward(int steps)
|
boolean |
canGoForward()
|
Picture |
capturePicture()
|
void |
clearCache(boolean includeDiskFiles)
|
void |
clearFormData()
|
void |
clearHistory()
|
void |
clearMatches()
|
void |
clearSslPreferences()
|
void |
clearView()
|
protected int |
computeHorizontalScrollOffset()
|
protected int |
computeHorizontalScrollRange()
|
void |
computeScroll()
|
protected int |
computeVerticalScrollExtent()
|
protected int |
computeVerticalScrollOffset()
|
protected int |
computeVerticalScrollRange()
|
WebBackForwardList |
copyBackForwardList()
|
void |
debugDump()
|
void |
destroy()
|
static void |
disablePlatformNotifications()
|
boolean |
dispatchKeyEvent(KeyEvent event)
|
void |
documentHasImages(Message response)
|
void |
draw(Canvas canvas)
|
protected boolean |
drawChild(Canvas canvas,
View child,
long drawingTime)
|
void |
emulateShiftHeld()
|
static void |
enablePlatformNotifications()
|
protected void |
finalize()
|
static String |
findAddress(String addr)
|
int |
findAll(String find)
|
void |
findNext(boolean forward)
|
void |
flingScroll(int vx,
int vy)
|
void |
freeMemory()
|
SslCertificate |
getCertificate()
|
int |
getContentHeight()
|
Bitmap |
getFavicon()
|
WebView.HitTestResult |
getHitTestResult()
|
String[] |
getHttpAuthUsernamePassword(String host,
String realm)
|
String |
getOriginalUrl()
|
static PluginList |
getPluginList()
|
int |
getProgress()
|
float |
getScale()
|
WebSettings |
getSettings()
|
String |
getTitle()
|
String |
getUrl()
|
View |
getZoomControls()
|
void |
goBack()
|
void |
goBackOrForward(int steps)
|
void |
goForward()
|
void |
invokeZoomPicker()
|
void |
loadData(String data,
String mimeType,
String encoding)
|
void |
loadDataWithBaseURL(String baseUrl,
String data,
String mimeType,
String encoding,
String historyUrl)
|
void |
loadUrl(String url)
|
void |
loadUrl(String url,
Map<String,String> extraHeaders)
|
protected void |
onAttachedToWindow()
|
void |
onChildViewAdded(View parent,
View child)
|
void |
onChildViewRemoved(View p,
View child)
|
InputConnection |
onCreateInputConnection(EditorInfo outAttrs)
|
protected void |
onDetachedFromWindow()
|
protected void |
onDraw(Canvas canvas)
|
protected void |
onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
|
void |
onGlobalFocusChanged(View oldFocus,
View newFocus)
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
|
boolean |
onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event)
|
boolean |
onKeyUp(int keyCode,
KeyEvent event)
|
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
|
protected void |
onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
|
protected void |
onScrollChanged(int l,
int t,
int oldl,
int oldt)
|
protected void |
onSizeChanged(int w,
int h,
int ow,
int oh)
|
boolean |
onTouchEvent(MotionEvent ev)
|
boolean |
onTrackballEvent(MotionEvent ev)
|
void |
onWindowFocusChanged(boolean hasWindowFocus)
|
boolean |
overlayHorizontalScrollbar()
|
boolean |
overlayVerticalScrollbar()
|
boolean |
pageDown(boolean bottom)
|
boolean |
pageUp(boolean top)
|
void |
pauseTimers()
|
boolean |
performLongClick()
|
void |
postUrl(String url,
byte[] postData)
|
void |
refreshPlugins(boolean reloadOpenPages)
|
void |
reload()
|
boolean |
requestChildRectangleOnScreen(View child,
Rect rect,
boolean immediate)
|
boolean |
requestFocus(int direction,
Rect previouslyFocusedRect)
|
void |
requestFocusNodeHref(Message hrefMsg)
|
void |
requestImageRef(Message msg)
|
boolean |
restorePicture(Bundle b,
File src)
|
WebBackForwardList |
restoreState(Bundle inState)
|
void |
resumeTimers()
|
void |
savePassword(String host,
String username,
String password)
|
boolean |
savePicture(Bundle b,
File dest)
|
WebBackForwardList |
saveState(Bundle outState)
|
void |
setBackgroundColor(int color)
|
void |
setCertificate(SslCertificate certificate)
|
void |
setDownloadListener(DownloadListener listener)
|
void |
setHorizontalScrollbarOverlay(boolean overlay)
|
void |
setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
|
void |
setInitialScale(int scaleInPercent)
|
void |
setLayoutParams(ViewGroup.LayoutParams params)
|
void |
setMapTrackballToArrowKeys(boolean setMap)
|
void |
setNetworkAvailable(boolean networkUp)
|
void |
setOverScrollMode(int mode)
|
void |
setPictureListener(WebView.PictureListener listener)
|
void |
setScrollBarStyle(int style)
|
void |
setVerticalScrollbarOverlay(boolean overlay)
|
void |
setWebChromeClient(WebChromeClient client)
|
void |
setWebViewClient(WebViewClient client)
|
void |
stopLoading()
|
boolean |
zoomIn()
|
boolean |
zoomOut()
|
Methods inherited from class android.view.ViewGroup |
addFocusables, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDraw, dispatchFreezeSelfOnly, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetPressed, dispatchSetSelected, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowVisibilityChanged, drawableStateChanged, findFocus, fitSystemWindows, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getPersistentDrawingCache, hasFocus, hasFocusable, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, measureChild, measureChildren, measureChildWithMargins, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAnimationEnd, onAnimationStart, onCreateDrawableState, onInterceptTouchEvent, onRequestFocusInDescendants, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestDisallowInterceptTouchEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setOnHierarchyChangeListener, setPadding, setPersistentDrawingCache, setStaticTransformationsEnabled, showContextMenuForChild, startLayoutAnimation, updateViewLayout |
Methods inherited from class android.view.View |
awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, cancelLongPress, checkInputConnectionProxy, clearAnimation, computeHorizontalScrollExtent, createContextMenu, destroyDrawingCache, findViewById, findViewWithTag, focusSearch, forceLayout, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getKeepScreenOn, getKeyDispatcherState, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMeasuredHeight, getMeasuredWidth, getNextFocusDownId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getTag, getTag, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getVerticalFadingEdgeLength, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isClickable, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isInEditMode, isInTouchMode, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPressed, isSaveEnabled, isScrollbarFadingEnabled, isSelected, isShown, isSoundEffectsEnabled, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onDisplayHint, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onKeyLongPress, onKeyPreIme, onKeyShortcut, onRestoreInstanceState, onSaveInstanceState, onSetAlpha, onStartTemporaryDetach, onVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performClick, performHapticFeedback, performHapticFeedback, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, refreshDrawableState, removeCallbacks, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAnimation, setBackgroundDrawable, setBackgroundResource, setClickable, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setId, setKeepScreenOn, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnKeyListener, setOnLongClickListener, setOnTouchListener, setPressed, setSaveEnabled, setScrollbarFadingEnabled, setScrollContainer, setSelected, setSoundEffectsEnabled, setTag, setTag, setTouchDelegate, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVisibility, setWillNotCacheDrawing, setWillNotDraw, showContextMenu, startAnimation, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDraw |
SCHEME_TEL
public static final String SCHEME_TEL
- See Also:
- Constant Field Values
SCHEME_MAILTO
public static final String SCHEME_MAILTO
- See Also:
- Constant Field Values
SCHEME_GEO
public static final String SCHEME_GEO
- See Also:
- Constant Field Values
WebView
public WebView(Context context)
WebView
public WebView(Context context,
AttributeSet attrs)
WebView
public WebView(Context context,
AttributeSet attrs,
int defStyle)
setOverScrollMode
public void setOverScrollMode(int mode)
- Overrides:
setOverScrollMode
in class View
setScrollBarStyle
public void setScrollBarStyle(int style)
- Overrides:
setScrollBarStyle
in class View
setHorizontalScrollbarOverlay
public void setHorizontalScrollbarOverlay(boolean overlay)
setVerticalScrollbarOverlay
public void setVerticalScrollbarOverlay(boolean overlay)
overlayHorizontalScrollbar
public boolean overlayHorizontalScrollbar()
overlayVerticalScrollbar
public boolean overlayVerticalScrollbar()
getCertificate
public SslCertificate getCertificate()
setCertificate
public void setCertificate(SslCertificate certificate)
savePassword
public void savePassword(String host,
String username,
String password)
setHttpAuthUsernamePassword
public void setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
getHttpAuthUsernamePassword
public String[] getHttpAuthUsernamePassword(String host,
String realm)
destroy
public void destroy()
enablePlatformNotifications
public static void enablePlatformNotifications()
disablePlatformNotifications
public static void disablePlatformNotifications()
setNetworkAvailable
public void setNetworkAvailable(boolean networkUp)
saveState
public WebBackForwardList saveState(Bundle outState)
savePicture
public boolean savePicture(Bundle b,
File dest)
restorePicture
public boolean restorePicture(Bundle b,
File src)
restoreState
public WebBackForwardList restoreState(Bundle inState)
loadUrl
public void loadUrl(String url,
Map<String,String> extraHeaders)
loadUrl
public void loadUrl(String url)
postUrl
public void postUrl(String url,
byte[] postData)
loadData
public void loadData(String data,
String mimeType,
String encoding)
loadDataWithBaseURL
public void loadDataWithBaseURL(String baseUrl,
String data,
String mimeType,
String encoding,
String historyUrl)
stopLoading
public void stopLoading()
reload
public void reload()
canGoBack
public boolean canGoBack()
goBack
public void goBack()
canGoForward
public boolean canGoForward()
goForward
public void goForward()
canGoBackOrForward
public boolean canGoBackOrForward(int steps)
goBackOrForward
public void goBackOrForward(int steps)
pageUp
public boolean pageUp(boolean top)
pageDown
public boolean pageDown(boolean bottom)
clearView
public void clearView()
capturePicture
public Picture capturePicture()
getScale
public float getScale()
setInitialScale
public void setInitialScale(int scaleInPercent)
invokeZoomPicker
public void invokeZoomPicker()
getHitTestResult
public WebView.HitTestResult getHitTestResult()
requestFocusNodeHref
public void requestFocusNodeHref(Message hrefMsg)
requestImageRef
public void requestImageRef(Message msg)
computeHorizontalScrollRange
protected int computeHorizontalScrollRange()
- Overrides:
computeHorizontalScrollRange
in class View
computeHorizontalScrollOffset
protected int computeHorizontalScrollOffset()
- Overrides:
computeHorizontalScrollOffset
in class View
computeVerticalScrollRange
protected int computeVerticalScrollRange()
- Overrides:
computeVerticalScrollRange
in class View
computeVerticalScrollOffset
protected int computeVerticalScrollOffset()
- Overrides:
computeVerticalScrollOffset
in class View
computeVerticalScrollExtent
protected int computeVerticalScrollExtent()
- Overrides:
computeVerticalScrollExtent
in class View
onOverScrolled
protected void onOverScrolled(int scrollX,
int scrollY,
boolean clampedX,
boolean clampedY)
- Overrides:
onOverScrolled
in class View
getUrl
public String getUrl()
getOriginalUrl
public String getOriginalUrl()
getTitle
public String getTitle()
getFavicon
public Bitmap getFavicon()
getProgress
public int getProgress()
getContentHeight
public int getContentHeight()
pauseTimers
public void pauseTimers()
resumeTimers
public void resumeTimers()
freeMemory
public void freeMemory()
clearCache
public void clearCache(boolean includeDiskFiles)
clearFormData
public void clearFormData()
clearHistory
public void clearHistory()
clearSslPreferences
public void clearSslPreferences()
copyBackForwardList
public WebBackForwardList copyBackForwardList()
findNext
public void findNext(boolean forward)
findAll
public int findAll(String find)
findAddress
public static String findAddress(String addr)
clearMatches
public void clearMatches()
documentHasImages
public void documentHasImages(Message response)
computeScroll
public void computeScroll()
- Overrides:
computeScroll
in class View
setWebViewClient
public void setWebViewClient(WebViewClient client)
setDownloadListener
public void setDownloadListener(DownloadListener listener)
setWebChromeClient
public void setWebChromeClient(WebChromeClient client)
setPictureListener
public void setPictureListener(WebView.PictureListener listener)
addJavascriptInterface
public void addJavascriptInterface(Object obj,
String interfaceName)
getSettings
public WebSettings getSettings()
getPluginList
public static PluginList getPluginList()
refreshPlugins
public void refreshPlugins(boolean reloadOpenPages)
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
drawChild
protected boolean drawChild(Canvas canvas,
View child,
long drawingTime)
- Overrides:
drawChild
in class ViewGroup
onDraw
protected void onDraw(Canvas canvas)
- Overrides:
onDraw
in class View
draw
public void draw(Canvas canvas)
- Overrides:
draw
in class View
setLayoutParams
public void setLayoutParams(ViewGroup.LayoutParams params)
- Overrides:
setLayoutParams
in class View
performLongClick
public boolean performLongClick()
- Overrides:
performLongClick
in class View
onCreateInputConnection
public InputConnection onCreateInputConnection(EditorInfo outAttrs)
- Overrides:
onCreateInputConnection
in class View
onKeyMultiple
public boolean onKeyMultiple(int keyCode,
int repeatCount,
KeyEvent event)
- Specified by:
onKeyMultiple
in interface KeyEvent.Callback
- Overrides:
onKeyMultiple
in class View
onKeyDown
public boolean onKeyDown(int keyCode,
KeyEvent event)
- Specified by:
onKeyDown
in interface KeyEvent.Callback
- Overrides:
onKeyDown
in class View
onKeyUp
public boolean onKeyUp(int keyCode,
KeyEvent event)
- Specified by:
onKeyUp
in interface KeyEvent.Callback
- Overrides:
onKeyUp
in class View
emulateShiftHeld
public void emulateShiftHeld()
onAttachedToWindow
protected void onAttachedToWindow()
- Overrides:
onAttachedToWindow
in class View
onDetachedFromWindow
protected void onDetachedFromWindow()
- Overrides:
onDetachedFromWindow
in class View
onChildViewAdded
public void onChildViewAdded(View parent,
View child)
- Specified by:
onChildViewAdded
in interface ViewGroup.OnHierarchyChangeListener
onChildViewRemoved
public void onChildViewRemoved(View p,
View child)
- Specified by:
onChildViewRemoved
in interface ViewGroup.OnHierarchyChangeListener
onGlobalFocusChanged
public void onGlobalFocusChanged(View oldFocus,
View newFocus)
- Specified by:
onGlobalFocusChanged
in interface ViewTreeObserver.OnGlobalFocusChangeListener
onWindowFocusChanged
public void onWindowFocusChanged(boolean hasWindowFocus)
- Overrides:
onWindowFocusChanged
in class View
onFocusChanged
protected void onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
- Overrides:
onFocusChanged
in class View
onSizeChanged
protected void onSizeChanged(int w,
int h,
int ow,
int oh)
- Overrides:
onSizeChanged
in class View
onScrollChanged
protected void onScrollChanged(int l,
int t,
int oldl,
int oldt)
- Overrides:
onScrollChanged
in class View
dispatchKeyEvent
public boolean dispatchKeyEvent(KeyEvent event)
- Overrides:
dispatchKeyEvent
in class ViewGroup
onTouchEvent
public boolean onTouchEvent(MotionEvent ev)
- Overrides:
onTouchEvent
in class View
setMapTrackballToArrowKeys
public void setMapTrackballToArrowKeys(boolean setMap)
onTrackballEvent
public boolean onTrackballEvent(MotionEvent ev)
- Overrides:
onTrackballEvent
in class View
flingScroll
public void flingScroll(int vx,
int vy)
getZoomControls
public View getZoomControls()
zoomIn
public boolean zoomIn()
zoomOut
public boolean zoomOut()
requestFocus
public boolean requestFocus(int direction,
Rect previouslyFocusedRect)
- Overrides:
requestFocus
in class ViewGroup
onMeasure
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
- Overrides:
onMeasure
in class AbsoluteLayout
requestChildRectangleOnScreen
public boolean requestChildRectangleOnScreen(View child,
Rect rect,
boolean immediate)
- Specified by:
requestChildRectangleOnScreen
in interface ViewParent
- Overrides:
requestChildRectangleOnScreen
in class ViewGroup
setBackgroundColor
public void setBackgroundColor(int color)
- Overrides:
setBackgroundColor
in class View
debugDump
public void debugDump()
Copyright © 2008-2010. All Rights Reserved.