Few time saving tips on Android Studio
If you are creating a model class to store data with large number of variables, you may have manually created getters andsetters for all those variables. This may help you to save some time.
Right click anywhere inside the class. Select
Generate -> Getter and Setter
Now select the variables for which the getters and setters should be generated. Now Android Studio automatically generates it for you.
Shortcut Key
Alt + Enter -> Generate -> Getter and Setter
Enjoy Coding :)
No comments: