-
Notifications
You must be signed in to change notification settings - Fork 482
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
老铁,为什么我的自定义的dialog,每次弹出来都是浮动在在一个新界面(activity), #48
Comments
然后今天发现,只要builder设置CustomDownloadActivityClass(MyVersionUpdateDialogActivity.class)时,即使MyVersionUpdateDialogActivity 仅继承VersionDialogActivity,其他内容为空时,也会出现这个问题。 |
设置activity Theme |
设置过了 |
你的MyVersionUpdateDialogActivity 设置了android:theme="@style/versionCheckLibvtransparentTheme"没有 |
设置过,但一设置就报错 Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
这俩style都不可以 |
android:theme="@style/versionCheckLibvtransparentTheme" 老铁库自带就有个 |
|
@AlexLiuSheng扎心了老铁,已解决 |
而不是像demo一样浮动在原来的界面
重写的showVersionDialog()方法,用了
versionDialog.setContentView(R.layout.activity_version_update_dialog);
The text was updated successfully, but these errors were encountered: