I have research Android Browser. There i was find WebView - web
control which can be used in any app. But i need to change drawing
logic of WebView control in core ( sources ).
There is the part of source code from WebView.java
line 2243
@Override
protected void onDraw(Canvas canvas) {
// if mNativeClass is 0, the WebView has been destroyed. Do
nothing.
if (mNativeClass == 0) {
return;
}
if (mWebViewCore.mEndScaleZoom) {
mWebViewCore.mEndScaleZoom = false;
if (mTouchMode = FIRST_SCROLL_ZOOM
mTouchMode = LAST_SCROLL_ZOOM) {
setHorizontalScrollBarEnabled(true);
setVerticalScrollBarEnabled(true);
mTouchMode = TOUCH_DONE_MODE;
}
}
int sc = canvas.save();
if (mTouchMode = FIRST_SCROLL_ZOOM mTouchMode =
LAST_SCROLL_ZOOM) {
scrollZoomDraw(canvas);
} else {
nativeRecomputeFocus();
// Update the buttons in the picture, so when we draw the
picture
// to the screen, they are in the correct state.
// Tell the native side if user is a) touching the screen,
// b) pressing the trackball down, or c) pressing the
enter key
// If the focus is a button, we need to draw it in the
pressed
// state.
// If mNativeClass is 0, we should not reach here, so we
do not
// need to check it again.
nativeRecordButtons(hasFocus() hasWindowFocus(),
mTouchMode == TOUCH_SHORTPRESS_START_MODE
|| mTrackballDown || mGotEnterDown, false);
drawCoreAndFocusRing(canvas, mBackgroundColor,
mDrawFocusRing);
}
canvas.restoreToCount(sc);
if (AUTO_REDRAW_HACK mAutoRedraw) {
invalidate();
}
}
The all what i need to change text rendering. Which method i have to
override or change source to do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---