Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Dialog dialog = new Dialog(context);
  2. dialog.setContentView(R.layout.dialog);
  3.  
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@drawable/patientsbg"
  9. android:orientation="vertical" >
  10. </LinearLayout>
  11.  
  12. Dialog dialog = new Dialog(context);
  13. dialog.setContentView(R.layout.dialog);
  14. dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
  15.  
  16. <style name="Dialog_No_Border">
  17. <item name="android:windowIsFloating">true</item>
  18. <item name="android:windowBackground">#00000000</item>
  19. </style>
  20.  
  21. dialog = new Dialog(this, R.style.Dialog_No_Border);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement