SystemBarTint is a magnificent project that can easily enable translucent mode of our apps.
However, as my own experience on two old projects(started 3-4 years ago), add fitsSystemWindows is a hard-job, as we may have hundreds of thousands of layout files, some maybe useful, some are already outdated.
Add the attribute manually is meaningless and time-consuming, so I created this project to make this process automatically.
Add fitsSystemWindows to all layout files, painlessly!
Just put the python file at your android project's root directory, and run it. It will ignore generated and hidden directories, so don't worry about that. To re-format all layouts again, you can use the nice feature of android studio (reformat code on the whole layout folder).
As my system is Chinese, I use GBK to decode directory, you may change it to your system's encoding.
dirDecodeEncoding = "gbk"; #change this line
Any contribution is welcome.
- This script should be easily modified to support more android layout batch-edit mission.
- Nice format of output xml is wanted.