Example of how to make a bottom menu, which is divided into four image buttons. The most important is to use LinearLayout and align it to the parent element’s bottom. Then dividing the space between the buttons with android:layout_weight=”1″ which makes each button the same size. Using icons for these types of buttons is ideal, since the space per button is quite limited especially on phones, necessarily not so much on tablets.
The Android Software Development Kit offers great built-in support for internalization. It is easy to get started and make your app support several languages. Under the resources (res) folder you create subfolders for values with different suffixes i.e. values-fi, values-de, values-se and the resources you place under those folder will automatically be used depending on the user’s language setting. Values folder, without any suffixes is used if nothing else is specified, so it is the standard folder.
Lint even analyzes code for bidirectional text, to support languages that are written from right-to-left. It is an easy oversight at an early phase of the development process, but one that you will cost you a lot of tricky decisions down the line. If you are heading directly to international markets and releasing your app in several countries, it’s good to keep this in mind. Though designing layouts with a lot of spare room can difficult, often times you need to have your text resources customized to even fit. This means translating the texts, not only based on context, but also keeping in mind those precious Density-independent pixels.
This brings about the arduous task of going through the layouts after each iterative change, so keeping you language support somewhat limited will save you a lot of time further on.
After the new module window, comes create new module window with File name and Subproject name.
First is the location of aar file and the second one is the subproject name, which you can select yourself, it is used for local reference. In this example we will call it imported-aar. There will appear a new build.gradle (Module: imported-aar) in the android project explorer. We can reference it in build.gradle (app) as follows.
Live Templates are a way to make writing boilerplate code faster, by extendable abbreviations. They are a great way to add to your productivity with having commonly used code snippets easily inserted. Live Templates work on other Jet Brains IDEs also, for example IntelliJ IDEA.
Intel has a processor Virtualization Technology, that makes the emulator in Android Studio run a lot faster. The performance difference is really significant. Download the installer from Intel Developer Zone:
Android Studio SDK Manager also has a package for this, but the Intel installer is a lot more reliable.
Then you need to see that your VT-X (Virtualization Technology) is enabled in BIOS. It depends on your BIOS version, but it is usually under something similar to: Advanced > Intel Virtualization Technology.
Now create an AVD (Android Virtual Device) that uses a x86 image of Android OS.
When you get it to run correctly, Android Studio console Run tab will show:
HAXM is working and emulator runs in fast virt mode
As a part of their Material Design Google has released a great set of icons. You can import the whole library or just the icons you need for you project. The icons come in many sizes, so it is easy to cover different size screens.
Udacity is a site with free and paid online courses on a variety of software development topics. The content is made in co-operation with Google and is very clear and informative. The courses include exercises and downloadable projects. The courses are also a lot less verbose than some online courses, so it’s more actual coding and less watching videos.