Last active
January 10, 2017 11:27
-
-
Save hardikm9850/f89edb2d2ef6644f552daea6268240ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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