Skip to content

Commit

Permalink
dialog visibility issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
mithunvaghela committed Jul 7, 2024
1 parent c602ba4 commit d65d1c3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
35 changes: 18 additions & 17 deletions app/src/main/res/layout/dialog_edit_entry.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto">
android:layout_height="wrap_content">

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="@dimen/fu_margin_start">

<ScrollView
android:layout_width="match_parent"
android:layout_height="230dp"
android:layout_marginLeft="@dimen/fu_margin_start"
android:paddingVertical="15dp"
android:fillViewport="true"
android:fadeScrollbars="false"
android:layout_marginRight="@dimen/fu_margin_start">
<ScrollView
android:layout_width="match_parent"
android:layout_height="230dp"
android:layout_marginLeft="@dimen/fu_margin_start"
android:layout_marginRight="@dimen/fu_margin_start"
android:fadeScrollbars="false"
android:fillViewport="true"
android:paddingVertical="15dp">

<TextView
android:id="@+id/textView_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_5"
android:scrollbars="vertical" />
<TextView
android:id="@+id/textView_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/margin_5"
android:scrollbars="vertical"
android:textColor="@color/black" />

</ScrollView>
</ScrollView>

</RelativeLayout>
</androidx.cardview.widget.CardView>

0 comments on commit d65d1c3

Please sign in to comment.