yeah.... got it... thanks Megha... Wesley Sagittarius.
On Thu, May 1, 2008 at 2:59 AM, Megha Joshi <[EMAIL PROTECTED]> wrote: > > Did you do the two steps that I mentioned earlier, I am sure that made it > translucent when I tried it on my side. > Its just setting the translucent theme for the Activity as shown in > TranslucentActivity sample code. Next step is to remove the line from > onDraw() method, which paints the whole surface in gray color in the > beginning. > > > Thanks, > Megha > > > On Tue, Apr 29, 2008 at 11:14 PM, Wesley <[EMAIL PROTECTED]> wrote: > > > No matter what I set... Transparent or Translucent... the outcome in > > Emulator still not Transparent or Translucent... I only saw black color > > background only... > > How??? why?? > > > > > > Wesley Sagittarius. > > > > On Tue, Apr 29, 2008 at 5:39 AM, Megha Joshi <[EMAIL PROTECTED]> wrote: > > > > > Hi Wesley, > > > > > > You can do this by setting the transparent background of the > > > Activity, in which you are drawing. > > > > > > For example in ApiDemos>graphics>FingerPaint.java you can make the > > > following changes to get the behavior you are looking for: > > > > > > 1) As shown ApiDemos>apps>TranslucentActivity sample code, add the > > > tag below to the FingerPaint Activity declaration in AndroidManifest.xml > > > android:theme="@style/Theme.Translucent" > > > > > > 2) Comment out the first line in OnDraw(), which paints the > > > background in color : > > > // canvas.drawColor(0xFFAAAAAA); > > > > > > Thanks, > > > Megha > > > > > > > > > > > > On Sun, Apr 27, 2008 at 10:56 PM, Wesley Sagittarius < > > > [EMAIL PROTECTED]> wrote: > > > > > > > > > > > paint on screen and "home" still visible, can android do it??? > > > > re-paint on screen when change screen and "home" still visible, can > > > > android do it??? > > > > > > > > Anyone have any idea?? > > > > > > > > > > > > Wesley Sagittarius. > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

