You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we set fixed height of alertdialog and inflate dialog_fragment.xml into it ...
I had setup listview in dialog_fragment.xml and i want to set fixed height for alertdialog ... Is it possible !
The text was updated successfully, but these errors were encountered:
deshario
changed the title
Can we fixed height of AlertDialog !
Can we set fixed height for AlertDialog !
Jan 5, 2017
Inside you the onStart of your DialogFragment you cant specify a fixed height in px using dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, height);.
You might want to use a resource with a height in dp and resources.getDimensionPixelSize(R.dimen.popup_height) to avoid hardcoded pixel size.
Can we set fixed height of alertdialog and inflate dialog_fragment.xml into it ...
I had setup listview in dialog_fragment.xml and i want to set fixed height for alertdialog ... Is it possible !
The text was updated successfully, but these errors were encountered: