When I tried to call the camera in the itemView onclick in the viewholder part of Recyclerview, (Activity) itemView.context Classcasting exception occurs in this part, but is startActivityForResult not available in viewholder? I want to take a picture of each list view item and make it appear in the image view, but it doesn't work well.
android
Click events that occur in viewholder via listener
Let activity handle it (photographing)
You can reflect the result on the list in recyclerview and notify it.
© 2024 OneMinuteCode. All rights reserved.