Apply animation for Media Ouput Switcher dialog

-Inherit InputMethod animation and create MediaOutputDialog animation

Bug: 155822415
Test: manual test
Merged-In: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
Change-Id: I42506f065da687c4ba6ddadca0f3b7a1c55f1be7
This commit is contained in:
timhypeng
2020-11-13 16:40:44 +08:00
committed by tim peng
parent c3447450d4
commit b71aeae0cb
2 changed files with 4 additions and 0 deletions

View File

@@ -320,6 +320,9 @@
<style name="Animation.ShutdownUi" parent="@android:style/Animation.Toast">
</style>
<style name="Animation.MediaOutputDialog" parent="@android:style/Animation.InputMethod">
</style>
<!-- Standard animations for hiding and showing the status bar. -->
<style name="Animation.StatusBar">
</style>

View File

@@ -105,6 +105,7 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
window.setAttributes(lp);
window.setContentView(mDialogView);
window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
window.setWindowAnimations(R.style.Animation_MediaOutputDialog);
mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);