Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markzhai/resourceoverlaydemo
Demo to show Android aapt overlay and gradle resource merge
https://github.com/markzhai/resourceoverlaydemo
Last synced: about 1 month ago
JSON representation
Demo to show Android aapt overlay and gradle resource merge
- Host: GitHub
- URL: https://github.com/markzhai/resourceoverlaydemo
- Owner: markzhai
- License: apache-2.0
- Created: 2016-02-19T09:54:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T10:04:34.000Z (almost 9 years ago)
- Last Synced: 2024-04-09T21:38:13.697Z (9 months ago)
- Language: Java
- Homepage: http://blog.zhaiyifan.cn/2016/02/18/android-resource-overlay/
- Size: 88.9 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ResourceOverlayDemo
Demo to show Android aapt overlay and gradle resource merge
## aapt Overlay
Show how to apply overlay resource directory in gradle-based build system.
```bash
Usage:
aapt l[ist] [-v] [-a] file.{zip,jar,apk}
List contents of Zip-compatible archive.aapt d[ump] [--values] [--include-meta-data] WHAT file.{apk} [asset [asset ...]]
...aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
...
[--utf16] [--auto-add-overlay] \
...
[-S resource-sources [-S resource-sources ...]] \
[-F apk-file] [-J R-file-dir] \
...Package the android resources. It will read assets and resources that are
supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R
options control which files are output....
Modifiers:
...
-I add an existing package to base include set
...
-S directory in which to find resources. Multiple directories will be scanned
and the first match found (left to right) will take precedence.
...
--auto-add-overlay
Automatically add resources that are only in overlays.
...
```## gradle resource merge
http://tools.android.com/tech-docs/new-build-system/resource-merging