Supplying a different background drawable for a dialog?

by ivar » Fri, 12 Mar 2010 03:36:42 GMT


Sponsored Links
 While changing the color of the panel, did you set the alpha value to
FF? 0 gives you full transparency and FF gives you total opacity.

Hope this helps.
Ivar




--



Supplying a different background drawable for a dialog?

by Mark Wyszomierski » Fri, 12 Mar 2010 03:43:22 GMT


 I just took the original image from the android assets folder, changed
the color, and save it out in photoshop. If it weren't set to 0, then
wouldn't it also be opaque on 1.6+ ?

Someone recommended I try this:

        WindowManager.LayoutParams lp = getWindow().getAttributes();
        lp.dimAmount=0.2f;
        getWindow().setAttributes(lp);

in the dialog onCreate() method. Gave it a shot, but no effect on 1.5
either. Works perfectly on 1.6+. I think there's something wrong with
1.5.

Any ideas?

Thanks





--


Sponsored Links


Other Threads

1. Newbie salam kenal

Dah seminggu neh RR ngikuti milis. Masih bingung antar magic, hero dan
dream. Itu nama nama seri OS ya ? Kira kira urutannya gimana yah,
mulai dari yang sederhana sampai yang profesional

Duh mulai keracunan, tapi masih imun, karena belum lihat langsung, mau
mencoba gali info dulu.

Buat RR thanks before, bila dirasa katrok pertanyaannya. Boleh deh
saya di japri.

7:08:13 PM
Thu, Dec 10, 2009






-- 
Sent from my mobile device

--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. Refreshing the option menu items

Dear All,

I have created an option menu which also has a sub menu. In the sub
menu I have a setting for enabling/disabling images in my application
based on the application level flag that i change based on the option
being clicked.

What I am observing is that when i click on the "Menu" and change the
settings from enable Images to disable Images. its not reflecting.

I have put the debug log and what have been seen is the
onOptionCreateMenu method is getting called only one time- first time
when i click the "Menu" button. That is the reason the changed sub
menu is not getting reflected.

My question is that is there a way i can re-create the option menu
every time user presses the "Menu Button".

Thanks in advance.

Best Regards
Amit

-- 

3. read contacts from the phone into our application

4. API 1.5 to API 2.1

5. how to froyo on galaxy s + root and benchmark vs. Froyo EVO

6. newbe mau upgrade froyo

7. Sygic / GPS app di SGS?