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.


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();

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

Any ideas?



Sponsored Links

Other Threads

1. Motorola Android Phone Coming to Verizon?

According to leaked reports, Verizon Wireless will offer Motorola
Inc. Android phone, codenamed holes,in October.

The news, which broke on a Russian fan site and clearly as-yet
unsubstantiated, is accompanied by leaked images that show the Sholes
having a QWERTY slide-out keyboard, touchscreen, 5-megapixel camera
and Wi-Fi.

The Sholes, if the report is correct, will continue Moto forward
momentum for Android, which is widely seen as a last saving grace for
the handset division, which, while posting a surprise profit last
week, is still suffering from having to play catch-up in the
smartphone space. Motorola said during its earnings call that it will
introduce two Google Android phones in mid-September, one catering to
the tween/{*filter*} set.

It also has launched advanced Android development resources through
MOTODEV, offering developers early access to a new suite of Google
Android tools and programs, along with the opportunity to attend the
next MOTODEV Summit in San Diego, CA, on October 6, for advanced
training and information-gathering. The program is intended to
accelerate the development of applications to be used on Motorola's
mobile devices using the Android operating system.

"Motorola is focused on helping our global network of best-in-class
developers create, deploy and successfully market their Android
applications to ultimately unleash greater innovation into the mobile
application development space," said Christy Wyatt, vice president for
software platforms and ecosystem at Motorola. "We believe Android and
open software has the freedom and flexibility to foster innovation,
accelerate time to market, and deliver the most personal and
customized mobile experiences for consumers."

2. HVGA T-Mobile G1/G2 vs. iPhone

>From what I can gather it appears that both the T-Mobile G1and the
iPhone have HVGA - 320x480 displays.

However, one very important difference is that the T-Mobile phones
only support 64k colors, while the iPhones support 16M colors.

Can someone confirm that?


3. Architecture dilema

4. Upgrading from SDK 1.1 to 1.5 - map API key not valid?

5. Network connection from my development machine to the emulator - How To?

6. Select a specific InputMethod by program

7. content://sms Content Observer not invoked