Skip to content

Commit

Permalink
bottom padding
Browse files Browse the repository at this point in the history
  • Loading branch information
SlaVcE14 committed Jun 17, 2022
1 parent 272422e commit 4dce912
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ private void SetDialogSize(Context context){
if (configuration.screenWidthDp > maxWidth)
dialog.getWindow().setLayout(dpToPixels(context,maxWidth), ViewGroup.LayoutParams.WRAP_CONTENT);
else dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);

}

private int dpToPixels(Context context, float dp) {
Expand Down
1 change: 1 addition & 0 deletions SJDialog/src/main/res/layout/message_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
android:id="@+id/dialog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"
android:theme="@style/Theme.sjlibrary"
>

Expand Down
1 change: 1 addition & 0 deletions SJDialog/src/main/res/layout/popup_panel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
android:id="@+id/dialog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"
android:theme="@style/Theme.sjlibrary"
>

Expand Down

0 comments on commit 4dce912

Please sign in to comment.