Trax fork of /e/'s fork of ntfy-android.
Find a file
2021-10-25 09:01:10 -04:00
.google Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
app Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradle/wrapper Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
.gitignore Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
build.gradle Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradle.properties Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradlew Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradlew.bat Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
LICENSE Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
README.md Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
settings.gradle Initial commit based on original flower example 2021-10-25 09:01:10 -04:00

Android RecyclerView Sample (Kotlin)

This application implements a RecyclerView in Kotlin with ListAdapter, onClickListener and Headers. If you are looking for a simpler sample, look at the RecyclerViewSimple sample in the directory.

Introduction

Sample demonstrating the use of RecyclerView to layout elements with a LinearLayoutManager.

RecyclerView can display large datasets that can be scrolled efficiently by recycling a limited number of views. ListAdapter is used to efficiently compute diffs when items are added/removed from the list. Click listeners can be defined when ViewHolder views are instantiated.

Pre-requisites

  • Android SDK 27
  • Android Gradle Plugin 3.0
  • Android Support Repository

Screenshots

image

Getting Started

To build this project, use "Import Project" in Android Studio.

Support

If you've found an error in this sample, please file an issue: https://github.com/android/views-widgets

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.