Android system effects detailed and modified methods

Source: Internet
Author: User

Android system special effects related files: In: framework-res.apk in the \framework-res\res\anim folder after the anti-compilation!
All the files under the Anim folder are special effects files.
Principle Decompile framework-res.apk Replace files under Anim folder to achieve the purpose of modifying effects!
Then rebuild framework-res.apk Replace to phone, modify permissions restart

Special effects file name. xml corresponding effects

Fade_out the date of the recent task slide status bar removed

Fade_in the date of the recent task slide status bar removed

Status_bar_enter Status bar Removal

Status_bar_exitr Status Bar Popup

Wallpaper_open_exit Application Exit previous page removal

Wallpaper_open_ente application exits before a page pops up

Wallpaper_close_exie application opens previous page removal

Wallpaper_close_enter application opens after a page pops up

Options_panel_exi Options Menu Removal

Options_panel_enter Options Menu Popup

Translucent_exit text selection cursor removal

Translucent_enter text Selection Cursor Popup

Toast_exit Prompt window Removal

Toast_enter Cue window Popup

Input_method_exit IME Panel Removal

Input_method_enter IME Panel Popup

Lock_screen_exit Unlocked when lock screen window is removed

Activity_open_exit activity exits before a page is removed

Activity_open_ente Activity Exit Previous page Enter

Activity_close_exit Activity Open Previous page removal

Activity_close_enter Activity Open Previous page Enter

Dialog_exit window Removal

Dialog_enter Window Popup

1. Anti-compilation framework-res.apk
1. Open the effect file you need to modify (I open it casually) to see the code
<?xml version= "1.0" encoding= "Utf-8"?>
<set android:interpolator= "@anim/decelerate_interpolator"
Xmlns:android= "Http://schemas.android.com/apk/res/android" >
<translate android:duration= "Android:fromydelta=" 0.0% "android:toydelta=" -100.0 "/>
<scale android:duration= "" android:pivotx= "50.0%" android:pivoty= "50.0%" android:startoffset= "$" Android: Fromxscale= "1.0" android:toxscale= "0.05" android:fromyscale= "1.0" android:toyscale= "1.0"/>
</set>

Copy Code
3. Look at this sentence of the above code!
Android:duration= "150"
The 150 of this code represents the duration of this special effect! The smaller the number, the faster!!

However, not all android:duration= are followed by numbers! There could be this!!
android:duration= "@integer/config_shortanimtime"
This means that it lasts for a time that references the value of the Config_shortanimtime in the integer.
Like this there are two ways to modify it!
1. Direct the
android:duration= "@integer/config_shortanimtime"
Revision changed to
Android:duration= "150"
The number 150 can be customized!!

2. Open \framework-res\res\values\integers.xml File
Find this sentence.
<integer name= "Config_shortanimtime" >100</integer>
You can change the value of this sentence.
Note that the second method modifies all effects that refer to Integer!!
This can also be used to modify the global effect speed!!

Android system effects detailed and modified methods

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.