xmen
xmen

Reputation: 1967

Solid background for android dialog

In android 1.6, the background color is solid but in 2.3 or later, the dialog is transparent, more like opacity 80%. So I created new style

<style name="SolidDialog" parent="android:Theme.Dialog">

</style>

but what should I put inside ??

Upvotes: 1

Views: 385

Answers (1)

Tony the Pony
Tony the Pony

Reputation: 41347

Use:

   <item name="android:background">#FF000000</item>

This is opaque black (The first byte of the color is the opacity value, 0=transparent, 255=completely opaque).

Upvotes: 1

Related Questions