22 Ocak 2018 Pazartesi

Android Studio File Templates




File templates make our lives much more easier. When we do same thing again and again we usually copy and paste. This causes some pain, so file templates save us from it.

1) Right click on your package which your adapter will go in.



2) Click green plus icon on top of left


3) Give it a name and fill your template. For example my template which is RecyclerViewAdapter is at this gist: gist.github.com/furkanozbay/9d70cce1beed91a11e70e4254988d992



4) Create your adapter with template


5) Give names




  And your adapter is created.



 Thanks for Franks Rebecca to teach us the way. I have added a little bit from myself

0 yorum:

Yorum Gönder