�����ڵ�λ�ã���ҳ > ���� > Android���� > ����
Andriod������windowEnterAnimation��activityOpenEnterAnimation������
http://www.drovik.com/      2012-12-18 13:33:23      ��Դ��www.drovik.com      �����
     ����android�����Ĺ����У����������ö�������������windowEnterAnimation��activityOpenEnterAnimation������android��Դ�������Դ�ļ����������׶��ߵ����� windowEnterAnimation��������dialog������ activityOpenEnterAnimation��������activity�Ķ�����

        �����÷����£�

        1������Dialog����

A��
      ͨ��getWindow()������ȡ���Ĵ��ڣ�Ȼ��ͨ��getAttributes()�������window��WindowManager.LayoutParams lp, lp�и���������windowAnimations, ֻҪ��Ҫʵ�ֵ�animation��id��ֵ�����Ϳ�����
Dialog dialog = new Dialog(this);
dialog.getWindow().getAttributes().windowAnimations = R.style.PauseDialogAnimation
B��ͨ���ڴ���Dialog�Ĺ����ж�̬�İѶ����ļ���ID����ȥ��
Dialog dialog = new Dialog(this, R.style.PauseDialog);
// Setting the title and layout for the dialog
dialog.setTitle(R.string.pause_menu_label);
dialog.setContentView(R.layout.pause_menu);
˵������Ҫ������res/value/�´���style.xml�ļ�
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="PauseDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowAnimationStyle">@style/PauseDialogAnimation</item>
</style>
<style name="PauseDialogAnimation">
<item name="android:windowEnterAnimation">@anim/spin_in</item>
<item name="android:windowExitAnimation">@android:anim/slide_out_right</item>
</style>
</resources>
2������activity����

a��
activity�Ľ�����˳�Ч������ͨ��

@android:activityOpenEnterAnimation��
@android:activityOpenExitAnimation��
@android:activityCloseEnterAnimation��
@android:activityCloseExitAnimation

�ĸ�item�趨��

����������òο�����:

<style name="myact">

<item name="@android:activityOpenEnterAnimation">@anim/act_enter</item>

<item name="@android:activityOpenExitAnimation">@anim/act_exit</item>

<item name="@android:activityCloseEnterAnimation">@anim/act_enter</item>

<item name="@android:activityCloseExitAnimation">@anim/act_exit</item>

</style>


<style name="mytheme" parent="@android:style/Theme">

<item name="@android:windowAnimationStyle">@style/myact</item>

</style>

Ȼ���mytheme���style��ΪActivity��theme������

b��

      Ҳͨ��acitvity��ȡ����window, Ȼ�������dialogһ���������á� acitvity�Ķ������ù�����������Window��layoutparams���windowAnimationsֵ��
��������
��������(5)
d  ������  2013-1-29 12:54:30
ding
[�����ظ�]  лл!
�륤�����ȥ󥻥���ɥХå���Υ����  ������  2015-7-2 2:26:37
Nice blog here! Additionally your site a lot up very fast! What host are you the usage of? Can I am getting your affiliate hyperlink for your host? I desire my web site loaded up as quickly as yours lol �륤�����ȥ󥻥���ɥХå���Υ���� http://www.sindjufeba.org.br/xml/fs.asp?lw77g-jg9ce.htm
�륤�����ȥ�ؔ�������`��  ������  2015-7-6 13:35:01
Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is magnificent, as well as the content! �륤�����ȥ�ؔ�������`�� http://www.smc-multimedia.com/wo.asp?fk96-ew6hr.htm
�륤�����ȥ󥰥�ե��ƥ�ؔ���֥���  ������  2015-7-7 6:19:15
�륤�����ȥ󥰥�ե��ƥ�ؔ���֥��� http://www.boyao-tech.com/jp/menu.asp?louis-vuitton-wallets-395,�륤�����ȥ�ؔ��С�E��� http://www.smc-multimedia.com/vago.asp?lv--190,�륤�����ȥ�ؔ��n60003 http://www.boyao-tech.com/jp/menu.asp?louis-vuitton-wallets-149,�륤�����ȥ���ߥ��Хå� http://www.smc-multimedia.com/vago.asp?lv--42,�륤�����ȥ�ؔ�����ԩ`���� http://www.boyao-tech.com/jp/menu.asp?louis-vuitton-wallets-117,�륤�����ȥ󥫥�����ؔ�� http://www.boyao-tech.com/jp/menu.asp?louis-vuitton-wallets-757,
�륤�����ȥ�ؔ��������˳�  ������  2015-7-8 8:04:19
�륤�����ȥ�ؔ��������˳� http://www.sinopromotion.com/bottoms.asp?ci65-pg3bu.htm, �륤�����ȥ�ؔ���˚�Ů�� http://www.sinopromotion.com/bottoms.asp?ji15-vv9hj.htm, �륤�����ȥ󥹥ϥ�ϥ�ɥХå� http://www.sinopromotion.com/bottoms.asp?ko01-ib5zh.htm, �륤�����ȥ��Lؔ�������������� http://www.sinopromotion.com/bottoms.asp?hf24-hx0yo.htm, �륤�����ȥ�ؔ�����`���ʥ����` http://www.sinopromotion.com/bottoms.asp?cs71-lh7wi.htm,
���� *
�������� *
��֤�� *ͼƬ�����壿������µõ���֤��