I am using v7 support AppCompatDialogFragment in my app
import android.support.v7.app.AppCompatDialogFragment;
public class LoginDialogFragment extends AppCompatDialogFragment {
}
Throughout the app I am using default Fragment
and FragmentManager
and NOT android.support.v4.app.Fragment
or adroid.support.v4.app.FragmentManager
import android.app.Fragment;
import android.app.FragmentManager;
Now the problem is I want to show the dialog from an Activity by calling the method
public void show(@NotNull android.support.v4.app.FragmentManager manager,
java.lang.String tag)
Which does not accept android.app.FragmentManager
as parameter.
So I can't call
LoginDialogFragment loginDialogFragment = new LoginDialogFragment();
loginDialogFragment.show(getFragmentManager(), "tag");
HOW TO SHOW DIALOG NOW ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…