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

布局创建的布局越来越多,有什么好的解决方式吗? #24

Closed
JokeenZhang opened this issue Nov 7, 2018 · 2 comments
Closed

Comments

@JokeenZhang
Copy link

No description provided.

@qyxxjd
Copy link
Owner

qyxxjd commented Nov 7, 2018

<com.classic.common.MultipleStatusView
    ...
    app:emptyView="@layout/custom_empty_view"
    app:errorView="@layout/custom_error_view"
    app:loadingView="@layout/custom_loading_view"
    app:noNetworkView="@layout/custom_no_network_view">

只有四个布局文件,应用内全局复用。

@JokeenZhang
Copy link
Author

我现在是将这个带有MultipleStatusView的布局作为base布局。但是有些界面还是有些不一样,就显得有些冗余了。不过也不是什么大问题,谢谢。

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

2 participants