remove corners dialogfragment android code example
Example: remove corners dialogfragment android
// Dialog Fragment java file
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.dialog_layout_xml, container, false);
// Now add this below onCreateView
if (getDialog() != null && getDialog().getWindow() != null) {
getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
}