File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
dialogsheet/src/main/java/com/marcoscg/dialogsheet Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 2020import android .support .v7 .widget .AppCompatTextView ;
2121import android .text .TextUtils ;
2222import android .view .View ;
23+ import android .view .WindowManager ;
2324import android .widget .LinearLayout ;
2425import android .widget .RelativeLayout ;
2526
@@ -452,6 +453,9 @@ private void init(Context context) {
452453
453454 bottomSheetDialog .setContentView (R .layout .layout_bottomdialog );
454455
456+ if (bottomSheetDialog .getWindow () != null )
457+ bottomSheetDialog .getWindow ().setSoftInputMode (WindowManager .LayoutParams .SOFT_INPUT_ADJUST_RESIZE );
458+
455459 titleTextView = bottomSheetDialog .findViewById (R .id .dialogTitle );
456460 messageTextView = bottomSheetDialog .findViewById (R .id .dialogMessage );
457461 iconImageView = bottomSheetDialog .findViewById (R .id .dialogIcon );
You can’t perform that action at this time.
0 commit comments