From d65d1c35384acfc48797f4dd51d85c56eee472e9 Mon Sep 17 00:00:00 2001 From: Vaghela Mithun Date: Sun, 7 Jul 2024 15:03:40 +0530 Subject: [PATCH] dialog visibility issue resolved --- .../VisitSummaryActivity_New.java | 19 +++++----- app/src/main/res/layout/dialog_edit_entry.xml | 35 ++++++++++--------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/app/src/main/java/org/intelehealth/app/activities/visitSummaryActivity/VisitSummaryActivity_New.java b/app/src/main/java/org/intelehealth/app/activities/visitSummaryActivity/VisitSummaryActivity_New.java index 53e96e9fa0..2204a60148 100644 --- a/app/src/main/java/org/intelehealth/app/activities/visitSummaryActivity/VisitSummaryActivity_New.java +++ b/app/src/main/java/org/intelehealth/app/activities/visitSummaryActivity/VisitSummaryActivity_New.java @@ -1489,8 +1489,8 @@ public void onClick(DialogInterface dialogInterface, int i) { //complaintDialog.show(); AlertDialog alertDialog = complaintDialog.create(); - alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog - alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun +// alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog +// alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun int width = VisitSummaryActivity_New.this.getResources().getDimensionPixelSize(R.dimen.internet_dialog_width); // set width to your dialog. alertDialog.getWindow().setLayout(width, WindowManager.LayoutParams.WRAP_CONTENT); alertDialog.show(); @@ -1634,8 +1634,8 @@ public void onClick(DialogInterface dialogInterface, int i) { }); AlertDialog alertDialog = physicalDialog.create(); - alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog - alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun +// alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog +// alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun int width = VisitSummaryActivity_New.this.getResources().getDimensionPixelSize(R.dimen.internet_dialog_width); // set width to your dialog. alertDialog.getWindow().setLayout(width, WindowManager.LayoutParams.WRAP_CONTENT); alertDialog.show(); @@ -1770,8 +1770,8 @@ public void onClick(DialogInterface dialogInterface, int i) { // historyDialog.show(); AlertDialog alertDialog = historyDialog.create(); - alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog - alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun +// alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog +// alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun int width = VisitSummaryActivity_New.this.getResources().getDimensionPixelSize(R.dimen.internet_dialog_width); // set width to your dialog. alertDialog.getWindow().setLayout(width, WindowManager.LayoutParams.WRAP_CONTENT); alertDialog.show(); @@ -1907,10 +1907,11 @@ public void onClick(DialogInterface dialogInterface, int i) { } }); -// famHistDialog.show(); +// famHistDialog.show(); +// famHistDialog.setBackground(ContextCompat.getDrawable(this, R.drawable.ui2_rounded_corners_dialog_bg)); AlertDialog alertDialog = famHistDialog.create(); - alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog - alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun +// alertDialog.getWindow().setBackgroundDrawableResource(R.drawable.ui2_rounded_corners_dialog_bg); // show rounded corner for the dialog +// alertDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND); // dim backgroun int width = VisitSummaryActivity_New.this.getResources().getDimensionPixelSize(R.dimen.internet_dialog_width); // set width to your dialog. alertDialog.getWindow().setLayout(width, WindowManager.LayoutParams.WRAP_CONTENT); alertDialog.show(); diff --git a/app/src/main/res/layout/dialog_edit_entry.xml b/app/src/main/res/layout/dialog_edit_entry.xml index 6f3730dd04..7211201b4c 100755 --- a/app/src/main/res/layout/dialog_edit_entry.xml +++ b/app/src/main/res/layout/dialog_edit_entry.xml @@ -1,31 +1,32 @@ + android:layout_height="wrap_content"> - + - + - + \ No newline at end of file