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. WTH: pilih Galaxy 5 atau X8?

As subject, tolong ya suhu2 sekalian. Mau belajar ngoprek soalnya. Budget 2 
juta saja soalnya. 

Terima kasih sebelumnya. 


B/Rgds, 
Bambang S. Pranoto (Yongky)
Bless EO. Organizing with style.

-- 
===============
"

2. Testi Mr. Amil Luthfi

Rekan-Rekan, mohon testi atas nama Pak Amil Luthfi, emailnya: 
amilandr...@gmail.com

Saya mau transaksi dengan beliau soalnya, terima kasih sebelumnya.

Regards,
William

--
===============
"

3. [WTShare] Turut berduka buat X10 users

4. [WTS] jual kartu 3unlimited bawaan journey

5. Android harga gila/spesial hanya 3 hari buktikan!!!

6. Android NDK

7. Next Xperia-Droid : ARC