Tagged articles
4 articles
Page 1 of 1
The Dominant Programmer
The Dominant Programmer
Dec 9, 2020 · Mobile Development

How to Use an Adapter to Populate a RecyclerView in Android

This article walks through the complete process of adding a RecyclerView to an Android project, including the required support library dependency, creating the layout and item XML files, implementing a custom Adapter with ViewHolder, overriding the essential methods, and updating the view with a dynamic data source such as recorded audio file paths.

AdapterAndroidMobile Development
0 likes · 12 min read
How to Use an Adapter to Populate a RecyclerView in Android
Sohu Tech Products
Sohu Tech Products
Jan 22, 2020 · Mobile Development

Implementing Lifecycle‑Aware ViewHolder with MVVM in Android RecyclerView

This article proposes a solution to avoid data inconsistency caused by RecyclerView ViewHolder reuse by giving each ViewHolder its own lifecycle, integrating MVVM via a BaseLifecycleViewHolder, BaseLifeCycleAdapter, and VHLiveData, and demonstrates implementation details with Kotlin and Java code examples.

JavaKotlinLifecycle
0 likes · 13 min read
Implementing Lifecycle‑Aware ViewHolder with MVVM in Android RecyclerView
Qunar Tech Salon
Qunar Tech Salon
Dec 4, 2018 · Mobile Development

Zero‑Adapter Multi‑Item RecyclerView Library for Android

This article introduces an open‑source Android library that eliminates the need for custom RecyclerView adapters by using a ViewHolderManager system to handle multiple item types, headers, footers, click listeners, load‑more pagination, and animations, with complete code examples and usage guidelines.

AdapterAndroidMulti‑Item
0 likes · 12 min read
Zero‑Adapter Multi‑Item RecyclerView Library for Android
Tencent Music Tech Team
Tencent Music Tech Team
Jun 29, 2018 · Mobile Development

Investigation of IllegalArgumentException in Android RecyclerView after QQ Music K歌 4.6 Release

The QQ Music K歌 4.6 crash occurs when a hidden RecyclerView, created by fragment recreation after the app is killed, retains a stale cached Footer ViewHolder that mismatches the adapter’s type after an unnotified data change, triggering an IllegalArgumentException during the RecyclerView’s layout step 2.

AndroidCrashDebuggingIllegalArgumentException
0 likes · 15 min read
Investigation of IllegalArgumentException in Android RecyclerView after QQ Music K歌 4.6 Release