Android: how to use inflat in the MVP pattern?

The task is to implement a popup window.
All examples use the "infusion" ie
View layout = inflater.inflate(R. layout.popup,(ViewGroup) findViewById(R. id.popup_1));

This is causing the error expected view.View and received something else
Exactly where and how to use this method in the MVP pattern?
July 2nd 19 at 17:49
0 answer

Find more questions by tags Android