0

I am working on an android application that allows user to add an edit text dynamically. I have been able to add the edit text using an alert dialog. But I need to make the dialog box transparent .I need to be able to see the imageview in the background. Color.Transparent wont work because my background is an image

Akshay
  • 73
  • 2
  • 16

3 Answers3

1

You can try this

  <EditText
      android:id="@+id/purpose_textfield"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@null"/>
Andro Selva
  • 53,910
  • 52
  • 193
  • 240
peshkira
  • 6,069
  • 1
  • 33
  • 46
1

Try this:

Dialog mDialog = new Dialog(mContext, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);

or

mDialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
D.Bish
  • 208
  • 1
  • 6
0

Instead of Using alert Dialog Box, i prefer you to use Dialog box:

And use this code:

Dialog dialog = new Dialog(getBaseContext, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);

A.R.
  • 2,631
  • 1
  • 19
  • 22