Posts

Showing posts with the label recycler

RecyclerView with Kotlin in Android

Image
Hi,                                  This is my first post in Blog. So lets begin with something new, fun and easy ;) Lets do RecyclerView with Kotlin. 1. Create New Project : First, create a new project in Android Studio with Kotlin support. 2. Design Layouts :  Design layout with RecyclerView  as below: activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     xmlns:app="http://schemas.android.com/apk/res-auto">     <android.support.v7.widget.RecyclerView         android:id="@+id/recyclerView"         android:layout_width="0dp"         android:layout_height="0dp"         too