android10 / android10/Android-CleanArchitecture

UnsupportedOperationException due to injection of Application Context while inflating layout in adapter.

Open
#233 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15.5k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

So I was trying to set `android:background="?selectableItemBackground"` on the adapter item view when I ran into this issue. On further research I found out that passing application context while creating custom view results in this issue. This seriously limits injecting the adapter.

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.