DialogFragment not showing after adding Alert Window
FragmentManager fmg1=this.getChildFragmentManager();//orFragmentManager fmg1=this.getFragmentManager();dialog.show(fmg1 , "MyDialog");
Please try this it may Usefull
specify the view group ing inflate and set attach to root to true
addView(((LayoutInflater)activityContext.getSystemService("layout_inflater")).inflate(R.layout.floatingBotton, null));