зеркало из https://github.com/mozilla/gecko-dev.git
Bug 813288 - Use same doorhanger transitions as desktop. r=lucasr
This commit is contained in:
Родитель
a254b1fcac
Коммит
278783ebd2
|
@ -54,6 +54,8 @@ public class DoorHangerPopup extends PopupWindow
|
|||
registerEventListener("Doorhanger:Add");
|
||||
registerEventListener("Doorhanger:Remove");
|
||||
Tabs.registerOnTabsChangedListener(this);
|
||||
|
||||
setAnimationStyle(R.style.PopupAnimation);
|
||||
}
|
||||
|
||||
void destroy() {
|
||||
|
|
|
@ -526,6 +526,8 @@ RES_XML = \
|
|||
|
||||
RES_ANIM = \
|
||||
res/anim/awesomebar_fade_in.xml \
|
||||
res/anim/popup_show.xml \
|
||||
res/anim/popup_hide.xml \
|
||||
res/anim/awesomebar_fade_out.xml \
|
||||
res/anim/awesomebar_hold_still.xml \
|
||||
res/anim/grow_fade_in.xml \
|
||||
|
|
|
@ -55,6 +55,7 @@ public class MenuPopup extends PopupWindow {
|
|||
mArrowBottom = (ImageView) layout.findViewById(R.id.menu_arrow_bottom);
|
||||
mPanel = (RelativeLayout) layout.findViewById(R.id.menu_panel);
|
||||
mShowArrow = true;
|
||||
setAnimationStyle(R.style.PopupAnimation);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -53,6 +53,7 @@ public class SiteIdentityPopup extends PopupWindow {
|
|||
mResources = GeckoApp.mAppContext.getResources();
|
||||
mYOffset = mResources.getDimensionPixelSize(R.dimen.menu_popup_offset);
|
||||
mInflated = false;
|
||||
setAnimationStyle(R.style.PopupAnimation);
|
||||
}
|
||||
|
||||
public static synchronized SiteIdentityPopup getInstance() {
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:duration="150">
|
||||
|
||||
<translate android:fromYDelta="-0"
|
||||
android:toYDelta="-20"/>
|
||||
|
||||
<alpha android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0"/>
|
||||
|
||||
</set>
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:duration="150">
|
||||
|
||||
<translate android:fromYDelta="-20"
|
||||
android:toYDelta="0"/>
|
||||
|
||||
<alpha android:fromAlpha="0.0"
|
||||
android:toAlpha="1.0"/>
|
||||
|
||||
</set>
|
|
@ -428,4 +428,9 @@
|
|||
<item name="android:textAppearance">@style/TextAppearance</item>
|
||||
</style>
|
||||
|
||||
<style name="PopupAnimation">
|
||||
<item name="@android:windowEnterAnimation">@anim/popup_show</item>
|
||||
<item name="@android:windowExitAnimation">@anim/popup_hide</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
|
Загрузка…
Ссылка в новой задаче