SkillAgentSearch skills...

AndroidTemplate

No description available

Install / Use

/learn @NohaSamir/AndroidTemplate
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Android Templates

To add template to android studio link :

File > Settings > Select "File and Code Templates" > Create a new template:


RecyclerView Adapter Templates

As Android Developers, we all use RecyclerView's. And the process of setting up any RecyclerView is mostly the same.

You build a model for the data
Create a layout for each list item
Build a RecyclerView.Adapter
Initialize the RecyclerView in your activity/fragment

I'm going to give you a template you can add to your Android Studio so creating a RecyclerView Adapter can be done in a few clicks.

1- RecyclerAdapter

This template use the powerful of DiffUtil & AsyncListDiffer class to update the list

DiffUtil: is a utility class that can calculate the difference between two lists and output a list of update operations that converts the first list into the second one. DiffUtils is based on Eugene Myers’ algorithm.

Note: Use this template to create adapter with custom submitList() method

This template developed by CodingWithMitch , I'm just add new method addItems

2-RecyclerListAdapter

This template use the powerful of ListAdapter<T, VH>


View on GitHub
GitHub Stars8
CategoryDevelopment
Updated5y ago
Forks3

Security Score

50/100

Audited on Jun 18, 2020

No findings