You need to update to support different densities.  You are probably
creating a bitmap in compatibility mode that would thus be the size of an
HVGA screen, so when you draw it to your window it needs to be scaled up for
the higher density screen.  Once you use android:targetSdkVersion="4", the
compatibility code will be turned off, so you will be working in the true
pixel density of the screen.  Of course your app needs to be able to deal
with this.

On Thu, Jan 7, 2010 at 5:52 AM, chaozh <[email protected]> wrote:

> Hi all:
> I wrote a reading software. I implemented the page turning effect when
> user tap the screen to turn to next/pre page. The display is ok on G1
> (320X200 size) but it can not works well on Droid(480*854 size), the
> font looks a litter fuzzy, not clear as G1.
> I explain my codes for page turning:
> 1) create a canvas A
> 2) create bitmap.
> 3) set bitmap on canvas A
> 4) draw the new page content on canvas A
> 5) the current showing page has been saved in bitmap before since we
> do from step 1) to setp 4),
> 6) In order to implement the turning effect of scrolling from left to
> right, I draw the old bitmap part and draw the new bitmap part until
> the whole new bitmap has been drawn. all of bitmaps are drawing by
> canvas.drawBitmap() in onDraw() function.
> 7) when step 6) is done, it means the new page has been shown on
> screen, and the bitmap has been saved to use in next page turning.
>
> The above is the whole actions for my page turning. On G1, no problem.
> But on Droid phone, the font is not clear,
> I tried if I directly draw text by canvas in OnDraw() not through
> bitmap, It is ok, but it can not implement the page turning effect
> that I need. I don't know why, could you please help me to take a look
> and tell me where is wrong or miss some steps?
> Thanks a lot!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to