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