Why is the same dialog sometimes translucent?

by Carl Whalley » Fri, 02 Apr 2010 21:36:41 GMT


Sponsored Links
 I have a Dialog with a Button whos OnClickListener() creates an
AlertDialog:
public void onClick(View v) {
  Dialog confirmDialog = new AlertDialog.Builder( activity )
                        .setIcon( R.drawable.icon )
...

The problem is in one place in the app, actually a MapActivity derived
Activity, when I run this the confirmDialog is translucent, and I
don't want this. When I run the same code from various other points in
the app, all non MapActivity derived, the confirmDialog has a solid
background. So its unlikely to be anything in the Dialogs xml but more
the context it is launched from, but I can't for the life of me see
where any translucent style is even mentioned in the app. Has anyone
see this before, or got any hints for how I can stop it happening
please?

--
Android Academy:  http://androidacademy.com 

--



Other Threads

1. Is it possible to get raw events tuples for keyboard, touch screen etc?

Hi,

Gold-fishes use (type, code, value) tuples to encoding both keyboard
events, touch screen events and trackball events.  I wonder if it is
possible to get these generic tuples from application.

I am look at document for a whole day, but don't find any clue. :(  Is
anybody familiar with that? pls give some suggestions. orz

Best,
Xuan

-- 

2. Will the droid with andoid 2.0 get updates that give us more home screens>?

I love my droid.

But it seems unfair that the best android device has the least amount
of home screens.

Three isnt nearly enough.

The HTC eris has seven.

The hero has 10

What is up with this.

Why are we getting punished.

Please let me know if there are updates that will give us more.

even iphone has 11

-- 

3. AudioTrack usage with streaming data in native code

4. Event of Appwidget add failed by no room

5. How does ImageView just redraw part of its content when invalidate(Rect) is called?

6. Edit ListView Item content

7. Motorola Droid Email Issues??