[android-developers] XPREIA Android Resource

2010-02-11 Thread Bossly
Hi everyone!!

I am develop on XPERIA X10 and i need to customize layout for this
device. What kind resource parameters i have to use in Android 1.6

trying:

- drawable-hdpi
- drawable-854x480
- drawable-large

nothing work//

any ideas?

-- 
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


[android-developers] Walking by dates using Calendar

2009-11-27 Thread Bossly
Next day, Previous day using Calendar

There are two method to increase/decrease date. add() and roll()
methods.

But use:
 calendar.add(Calendar.DAY_OF_MONTH, -1); // go to previous day
 calendar.add(Calendar.DAY_OF_MONTH, 1); // go to next day

not
 calendar.roll(Calendar.DAY_OF_MONTH, -1); // set previous day without
month changes

for example:
 calendar.add():
   before : 31.12.2009 after 01.01.2010

 calendar.roll()
  before : 31.12.2009 after 01.12.2009

founded: http://developer.android.com/reference/java/util/Calendar.html

-- 
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


[android-developers] Browser

2009-07-20 Thread Bossly

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
-~--~~~~--~~--~--~---