Answers for "remove corners dialogfragment android"

0

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));
        }
Posted by: Guest on January-03-2021

Code answers related to "remove corners dialogfragment android"

Browse Popular Code Answers by Language