修改资源名
This commit is contained in:
parent
77b8d23940
commit
03bf1fe1b2
@ -56,7 +56,7 @@ class POPDialog : Dialog {
|
||||
LayoutInflater.from(context).inflate(defLayoutResId, mainView, false)
|
||||
val animation = AnimationUtils.loadAnimation(
|
||||
context,
|
||||
R.anim.enter_anim
|
||||
R.anim.pop_dialog_enter_anim
|
||||
)
|
||||
view.startAnimation(animation)
|
||||
val windowParams = FrameLayout.LayoutParams(
|
||||
@ -160,7 +160,7 @@ class POPDialog : Dialog {
|
||||
|
||||
window!!.setWindowAnimations(R.style.dialog_pop_anim)
|
||||
val attributes = window?.attributes!!
|
||||
attributes.windowAnimations = R.anim.enter_anim
|
||||
attributes.windowAnimations = R.anim.pop_dialog_enter_anim
|
||||
attributes.x = 0
|
||||
attributes.y = 0
|
||||
window!!.attributes = attributes
|
||||
@ -271,7 +271,7 @@ class POPDialog : Dialog {
|
||||
fun finish() {
|
||||
val animation = AnimationUtils.loadAnimation(
|
||||
context,
|
||||
R.anim.exit_anim
|
||||
R.anim.pop_dialog_exit_anim
|
||||
)
|
||||
animation.setAnimationListener(object : Animation.AnimationListener {
|
||||
override fun onAnimationStart(p0: Animation?) {
|
||||
|
@ -9,7 +9,7 @@
|
||||
android:id="@+id/pop_dialog_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dialog_title"
|
||||
android:background="@drawable/pop_dialog_title"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="SuspensionDialog">
|
||||
<item name="android:background">@drawable/dialog_title</item>
|
||||
<item name="android:background">@drawable/pop_dialog_title</item>
|
||||
</style>
|
||||
<style name="BaseDialog" parent="Theme.AppCompat.Dialog">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
@ -14,7 +14,7 @@
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
<style name="dialog_pop_anim" parent="android:Animation" mce_bogus="1">
|
||||
<item name="android:windowEnterAnimation">@anim/enter_anim</item>
|
||||
<item name="android:windowEnterAnimation">@anim/pop_dialog_enter_anim</item>
|
||||
</style>
|
||||
<style name="messageText">
|
||||
<item name="android:textColor">#212121</item>
|
||||
|
Loading…
Reference in New Issue
Block a user