Hi,

My application receive commands from network, then give hints to user, which
most of those are dialog.
I want to show a dialog in a transparent Activity.  The following dialogs
show in the same activity also.
So when the dialog pops up and user just use another application, the dialog
shows well.

The Activity code like this:
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.dialog_transparent_activity);
and then implements onCreateDialog method.


The dialog_transparent_activity.xml like this:
<?xml version="1.0" encoding="utf-8"?>
<TextView
    xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_vertical|center_horizontal"
    android:background="#88000000"/>

The AndroidMenifest.xml written like this:
  <activity android:name=".MyXXXActivity"
         android:launchMode="singleInstance"
         android:theme="@android:style/Theme.Dialog" />


All of those work well in Android1.0. However, in Android1.5, there is
problem.
There is a small rectangle with white bound at the background of the dialog.
When press
back button, the dialog is dismissed, but the rectangle is still there. You
must press
back button again to dismiss the rectangle.

I am curious why there is a strange rectangle. What's it? How to eliminate
it?

Thanks in advance.

Weston.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to