Simply check unused .xml or .png Android resources from /res and removes them.
How it works?
1. Make a list of resources(.xml, .png)
2. Scan each line of java sources and find exact matches of resource names.
3. If the resource name is used, then remove from the list
4. Also check each line of layout files(xml) and remove referenced resources.
5. The remaining resources are unused!