android - custom alert dialog getting unwanted padding -


I custom alerts trying to communicate and it is mostly very well. The functionality is working perfectly but this view is behaving weirdly. The dialog layout includes a button and a list view. As you can see is a margin at the top and at the bottom you will see in the screenshot below the buttons

I do not see any reason for the margin, and I would greatly appreciate some help :)

I can not post because of my XML layout, but I can asure you it is the paddings or any kind of fringe

Java code :.

  View dialogView = ((LayoutInflater) mContext.getSystemService (Context.LAYOUT_INFLATER_SERVICE)) increased (R.layout.choose_catagory_dialog_layout, null, false); Button footerButton = (Button) dialogView.findViewById (R.id.choose_catagory_dialog_footer_button); FooterButton.setOnClickListener (ButtonClickEvent); Builder = New AlertDialog Builder (MCTX); Builder.setView (dialogView); Builder.setTitle (R.string.choose_catagory); Builder.setAdapter (spinner adapters, listclick events); Alert = builder.create (); Alert.getListView () setVerticalFadingEdgeEnabled (wrong). Alert.setOwnerActivity (activity) mContext);   

Screenshots:

http: // cl. ly / is 3S2y3p3E0e3H2o1I272m

CustomPanel a AlertDialog a 5dp top Padding down you can override using these:

  alert .setview (Dialog View, 0, 0, 0, 0);    

Comments