Skip to content

Instantly share code, notes, and snippets.

@hardikm9850
Last active January 10, 2017 11:27
Show Gist options
  • Save hardikm9850/f89edb2d2ef6644f552daea6268240ee to your computer and use it in GitHub Desktop.
Save hardikm9850/f89edb2d2ef6644f552daea6268240ee to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/root_img"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent">
<View
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_gravity="bottom"
android:background="@android:color/white"
/>
<ImageView
android:id="@+id/img_alert_tick"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center"
android:background="@drawable/shape"
android:scaleType="fitCenter"
android:src="@drawable/ic_white_tick" />
</FrameLayout>
<TextView
android:id="@+id/txt_congo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/root_img"
android:background="@android:color/white"
android:gravity="center"
android:paddingBottom="50dp"
android:paddingTop="50dp"
android:text="@string/post_enquiry_popup_message"
android:textSize="17sp" />
</RelativeLayout>
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setView(R.layout.round_alert);
AlertDialog dialog = builder.show();
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment