Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持dialogfragment吗? #863

Closed
QianHong opened this issue Oct 23, 2020 · 1 comment
Closed

支持dialogfragment吗? #863

QianHong opened this issue Oct 23, 2020 · 1 comment

Comments

@QianHong
Copy link

QianHong commented Oct 23, 2020

我希望给 dialogfragment添加注解,然后在调用跳转方法时弹出dialoggfragment。

@QianHong QianHong changed the title 支持dialoggfragment吗? 支持dialogfragment吗? Oct 23, 2020
@QianHong
Copy link
Author

已解决,需要通过IProvider.
common包
public interface IXXXService extends IProvider {
void showXXXPage(BaseActivity baseActivity);
}
然后在某个module下新建IXXXService的实现类,重写showXXXPage方法,方法中弹出dialogfragment。
调用, IXXXService service = ( IXXXService) ARouter.getInstance()
.build(SettingRouter.SERVICE_)
.navigation();
service.showXXXPage(mContext);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant