We have seen some android studio shortcuts in early post Being More Productive With Android Studio – Part 1. Welcome to the second part of Be More productive in Android Studio.
Change Signature
Windows : CTRL + F6
macOS : CMD + FN + F6
It allows you to change signature of your class as well as method. You can add method parameter and its datatype.

Continue Reading →
Ravi Rupareliya
October 16, 2016
We all know how to develop good applications by using Android Studio and we are preety much happy with what we are doing. But what if those things will be done with less efforts? We all are habituated to use mouse in our day-to-day life but sometimes knowingly or unknowingly it will increase our efforts as well as development time.
Today we will see some basic shortcuts of Android Studio which will be used in day-to-day life. Most of the time we will use mouse to select whole line or sometimes will select those things by using SHIFT + Arrow keys and then delete that line but in Android Studio CMD + Y(CTRL + Y) will delete current line. Here are some Android Studio shortcuts which will help you to be more productive.
Delete Single Line
Windows : CTRL + Y
macOS : CMD + Y

Continue Reading →
Ravi Rupareliya
October 6, 2016
In I/O 2015 Google announced a data binding library for Android. With Data Binding, you create an ongoing link between an element in the user interface and a value. Data Binding is the process that establishes a connection between the application UI and business logic.
In this post we will learn how to integrate recyclerview with android Data Binding.
Step 1 : Enable dataBinding in your module level gradle, here is how your build.gradle should look like.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.androidgig.recyclerviewbinding" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" dataBinding{ enabled true } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0' compile 'com.squareup.picasso:picasso:2.5.2' } |
Continue Reading →
In earlier posts we have already seen
- Working with DataBinding Android
- Image Loading with DataBinding in Android
- Two-way DataBinding in Android
- Setting custom font through XML with DataBinding
Today we will discuss more about Advance DataBinding
Binding Events :
Events will be bound to handler methods directly, like we used to do it with android:onClick. Only change will be we have to take reference of our interface(handler).
Continue Reading →
Live templates helps you to write more code with less efforts. Live templates contain predefined code structure. What if you will get whole for loop with just one word? Seems interesting, let’s see how live template can help to increase your productivity.
Live templates are code snippet which can be inserted in your code with their abbreviation and pressing tab
. You can find all pre-defined live templates in Editor section of your Android Studio.
Continue Reading →