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

项目运行报错 #1

Closed
jamessawyer opened this issue Sep 12, 2019 · 5 comments
Closed

项目运行报错 #1

jamessawyer opened this issue Sep 12, 2019 · 5 comments

Comments

@jamessawyer
Copy link

jamessawyer commented Sep 12, 2019

首先感谢大佬的开源项目,本来想运行一下学习一下,clone下来后发现报错了
报错信息:

.../res/layout/activity_main.xml:18: AAPT: error: attribute tabIndicatorHeight (aka io.github.iamyours.wandroid:tabIndicatorHeight) not found

这个是要添加 material 依赖吗?
我是一个初学者,如果问题有点小白,还请包涵😁

@iamyours
Copy link
Owner

iamyours commented Sep 12, 2019

应该是要引入的

implementation 'com.google.android.material:material:1.0.0'

@jamessawyer
Copy link
Author

添加依赖后项目可以跑起来了。整体使用起来很流畅,十分的不错。

发现一个bug,竖屏切换为横屏时,应用直接闪退了,感觉应该只允许肖像模式。

另外有个小小的建议:"项目" tab页中,右侧的列表如果加载到底部了,没有更多的文章了,加一个提示比较好一点

@jamessawyer
Copy link
Author

我看 BaseActivity 里面已经有 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT 这个设置了,我用 MI6真机还是可以进行横竖屏切换 不知道为什么

iamyours added a commit that referenced this issue Sep 13, 2019
@iamyours
Copy link
Owner

已修复 @jamessawyer

@jamessawyer
Copy link
Author

Ok 更新了 没什么问题了,很好很强大。
感谢~

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