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

支持AppCompatActivity吗? #37

Closed
chenyunecjtu opened this issue Jul 8, 2019 · 2 comments
Closed

支持AppCompatActivity吗? #37

chenyunecjtu opened this issue Jul 8, 2019 · 2 comments

Comments

@chenyunecjtu
Copy link

我看转换里有
"android.app.Activity" to "com.tencent.shadow.core.runtime.ShadowActivity"
我直接替换为
"android.support.v7.app.AppCompatActivity" to "com.tencent.shadow.core.runtime.ShadowActivity"

@shifujun
Copy link
Collaborator

shifujun commented Jul 8, 2019

android.support.v7.app.AppCompatActivity的父类也是android.app.Activity,所以Shadow是支持的。

Shadow不关心这些support的实现。你可以认为support包的实现就是你自己写的代码,AppCompatActivity只是你写的业务的一个BaseActivity。

@chenyunecjtu
Copy link
Author

好 谢谢

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