I don't like to write findViewById everytime is there a keyboard shortcut for it please I am a newbie to coding help me ?
The findViewById() method is a method of Android's View and Activity classes. The method is used to find an existing view in your XML layout by its android:id attribute. The same can be done for any valid Android View object, such as a Button or a CheckBox view.
It is simple and default: ( CTRL + Z ) This is for undo. Just press ( CTRL + SHIFT + Z ) for redo.
As a Matter of fact there is a keyboard shortcut to write findViewById
findViewById
you could write fb+enter
in valid contextfindViewById(R.id.)
you could write fbc+enter
I don't know for shortcuts, but there is a library called ButterKnife which really simplifies some process like findViewById() or getRescources() and many others ;-)
http://jakewharton.github.io/butterknife/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With