I have a fragment (we can call fragment A) and I am inflating another view on top of fragment A (we will call that view B), but the buttons that are part of fragment A are visible in view B. In order to display view B I do:
LayoutInflater inflater = (LayoutInflater)getActivity().getSystemService
(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.coupon_input, (ViewGroup) getActivity().findViewById(R.id.rl_payment));
I'm wondering why the buttons that are part of fragment A are visible when I place view B on top of it? I can also click the buttons in fragment A through view B. How can I hide all of the views in Fragment A when I inflate view B over it?