Android Studio Tips, Tricks and Resources you should be comfortable with, as an Android Developer
android studio tips &tricks |
The explanation of this article, is to list supportive tips,
stunts, easy routes and assets for Android Studio that will work on your
general effectiveness
what's more presentation.
Trust you will appreciate it!
Visual
Material
Colors topic for Android Logcat
To change Android Studio Logcat you want to go to:
Preferences (Settings on Windows/Linux machines) → Editor → Color Scheme →
Android Logcat and change the frontal area tone for each sort of log. You
really want to likewise uncheck a choice Inherit esteems from: Console - >
Error yield.
My material tones:
Attest #BA68C8
Investigate #2196F3
Mistake #F44336
Data #4CAF50
Verbose #BBBBBB
Cautioning #FF9800
Apply an
appropriate code style to your IDE (IntelliJ/Android Studio)
Go to Preferences → Code Style → Java and in a Scheme
dropdown you can pick your code style (or set up another one).
2 styles which are particularly worth to make reference to:
Square Java Code Styles with Android
Google Java Code Style
You can import the topic as displayed on the gif underneath:
Assuming you work with Kotlin, I prescribe to utilize Kotlin
style guide from Predefined Style choice. To change that go to:
Code Style - > Kotlin - > Set from… - > Predefined
Style - > Kotlin style guide
Changing Color
of Logcat
Logcat is the most ideal way to observe any bug present in
the application. On the Logcat, we can see every single occasion happening with
a specific Android Application. It is smarter to have our Logcat customized for
example you can set the message tone for various messages like blunder or
cautioning. You can change the shade of different choices accessible in Logcat
by going to:
For Windows: File > Settings > Editor >Color Scheme
> Android Logcat and
change the default tone by unchecking the "Acquire values from"
choice.
For Mac: Android Studio > Preferences > Editor > Color
Scheme > Android Logcat and change the default tone by unchecking the "Acquire
values from" choice.
Find
everything
While fostering an Android application, we make many records
and in those documents, there are many classes and images. Along these lines,
it turns into a harder errand to observe which document is found where. Sit
back and relax, by squeezing shift (twice) (both in Windows and Mac) you will
get a window to look through anything you need to find.
Tracking down Actions
Android Studio contains various elements and it is difficult
to recall the spot from where a specific element can be utilized or enacted. In
this way, to look through these highlights in an extremely quick way, you can
utilize:
- For Windows: ctrl + shift + a
- For Mac: cmd + shift + a
Console
Shortcuts + Productivity Guide
Help - > Productivity Guide
I prescribe investing in some opportunity to learn Android
Studio's underlying console easy routes in the event that you haven't as of
now. The full rundown can be viewed as here, and I composed a past blog entry
featuring the ones I utilize most frequently.
Android Studio likewise gives an efficiency guide that shows
a rundown of activities that you use frequently and the easy routes related
with them. It's a great method for perceiving how long you've saved with easy
routes and learn new ones to save much additional time.
Code
Refactoring
Your unconstrained response to refactoring may be that it's
an excessive amount of work and prompts accidental bugs in the codebase.
Assuming your main choice was to refactor your code by hand utilizing a
straightforward content manager, you'd be correct. Notwithstanding, assuming
you offload every one of the means required to the IDE and allow it to execute
the refactoring task as a mechanized interaction, it turns into a piece of
cake. :]
In this part, you'll investigate a portion of the Android
Studio highlights which improve on the refactoring upward to a couple of
keystrokes, letting you refactor with certainty!
Using
Shortcuts to Move Code Around
Moving code around is probably the most visit tasks in a
designer's ordinary activities. Exactly when you present new changes, you'll
habitually have to move a line of code. Using Android Studio, you have a
combination of substitute ways of helping you with doing this without
introducing botches.
Explore
through techniques
In an Android record, there are different techniques and it
turns into a harder undertaking to explore from one strategy to other as a
strategy can be extremely huge and you want to look to continue on to the
following technique. In this way, to do it rapidly, we can squeeze alt + down
bolt to move to the following technique in the descending bearing and alt + up
bolt to move to the following strategy in the vertical heading.
Track down
data about techniques and boundaries
You can observe the data connected with a technique by
placing the cursor on the expected strategy and afterward squeezing the ctrl +
q (in Windows) or ctrl + j (in Mac).
To get the data about the boundaries of the strategies, you
can press ctrl + p (in the two Windows and Mac).
Modules
Key advertiser - a module which will assist you with
utilizing a console all the more frequently.
String Manipulation - a module which gives activities to message control (for
example flipping styles like camelCase, dash lowercase and so on, underwrite
text and some more).
Android Material Design Icon Generator - this module assists you with setting
Material Design symbols to your Android project. After establishment you can
utilize an alternate route: cmd + shift + m to produce a symbol (naturally).
ButterKnifeZelezny - basic module that permits a single tick production of
Butterknife view infusions.
IntelliJ/Android Studio Plugin for Android Parcelable standard
code age - a
module that produces an Android Parcelable execution in view of fields in the
class.
ADB Idea - a module that aides and computerizes adb orders to:
uninstall, kill, start, restart, clear an application and clear the application
information and restart it.
Genymotion module - this module permits you to make and begin Genymotion virtual
gadgets from Android Studio.
Android Methods Count - a module that parses your Android library conditions
and shows the strategies consider a convenient clue.
Git Flow Integration - a module for presenting a Git Flow expanding model.
Manufacturer module - a module (from Square) that produces a static settled
Builder for a class.
No comments:
Post a Comment