https://github.com/zaprogrammer/what-i-learned-android
This repo is a list of what I learn periodically about Android, so I want to share it with others.
https://github.com/zaprogrammer/what-i-learned-android
Last synced: 5 months ago
JSON representation
This repo is a list of what I learn periodically about Android, so I want to share it with others.
- Host: GitHub
- URL: https://github.com/zaprogrammer/what-i-learned-android
- Owner: zaprogrammer
- Created: 2019-09-06T01:27:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T02:00:50.000Z (almost 7 years ago)
- Last Synced: 2025-06-04T00:36:32.377Z (about 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
What I Learned - Android
---
As we move on developing software, we learn new skills and customize our IDE we love (or forced to work with sometimes) upon our needs to facilitate the daily development life.
This repo will focus on Android development gathering my knowledge and the new stuff I learn to be a reference to me and open-sourced for anyone to help also.
Android Studio
What if you have to move to a new machine or want to backup your settings/setup of AS that you have been installing for a quite time?
There are many ways to do so:
-
Automatic: Using JB plugin Settings Repository, but unfortunately, it is not stable and has a lot of bad reviews and low rating. -
Semi-Manual: Export/Import them from the AS menu: File > Export Settings…, then move the exported jar file to your new machine, then File > Import Settings… -
Manual: You can reference to this article to do it totally manual.
AS From scratch:
Below is my list of plugin and tweaks to the AS to help me develop faster and more consistently:
Res
Enable the use of support library for vector drawables
Using vector drawables instead of PNGs in you app results in smaller apk file. But vector drawables was introduced in API 21, so to support it backward to API 7, enable support library for vector drawables to make use of them in your app as follows:
- In build.gradle (app level), add:
vectorDrawables.useSupportLibrary = true
- Use app:srcCompat in the image tag in all your layout files:
app:srcCompat="@drawable/YOUR_RESOURCE_NAME"
- You’ll also need to add the namespace to the root of the layout (like android and tools namespaces):
xmlns:app="http://schemas.android.com/apk/res-auto"