Questions tagged [notifyitemchanged]
12 questions
1
vote
1 answer
Passind data from child activity to recycler in previous activity
I am an android noob.
My Main Activity contains a recycler view which lists all the lessons booked by the user/student. Data comes from SQLite DB.
When the user clicks on one of these lessons, a new activity (LessonInfo) shows its details and – only…

Luca13
- 13
- 3
1
vote
1 answer
Why can I call notifyItemChanged() in onResume() before data has changed?
To remove the highlighting background color from the last selected RecyclerView item when I return from my details activity, I tried this in onResume():
mAdapter.notifyItemChanged(mAdapter.selectedPos);
mAdapter.selectedPos =…
user10981072
0
votes
1 answer
How to remove horizontal recyclerview(child) inside the recyclerview(parent) scroll to first position when notifyitemchange?
I am using multiple view type inside the recyclerview. In which one of the view type is recyclerview of linear layoutmanager with horizontal orientation. I loaded all view type inside the parent recyclerview. When I change the some item in…

Suman Radhakrishnan
- 438
- 8
- 16
0
votes
0 answers
update specific item in viewPager2 at same time without affecting other items
STORY:-
I'm making app like Instagram Reels, with viewPager2 with RecyclerViewAdapter, all functionality working fine,
only one problem I'm facing right now is when I click on comment button the Comment screen is opening in another activity and when…
0
votes
1 answer
Recyclerview item losing focus on NotifyItemChange
When NotifyItemChanged() is called, the item that currently has accessibility focus loses it and the accessibility focus goes to the top of the screen. I have debugged onBindViewHolder and it doesn’t change the focus. Is there something else that…

Hasan Syed
- 1
- 2
0
votes
0 answers
Notify item changed is not working in recyclerview
My code adds items to favorites in SQLite:
if (productsArray.get(getAdapterPosition()).isFavorite()){
productsArray.get(getAdapterPosition()).setFavorite(false);
}else{
…
0
votes
2 answers
I need help implementing notifyItemChanged for my recyclerview
I am trying to set a background color for 1 item in my recyclerview when I click on a button. I get the index of the particular item and try to use a function that includes notifyItemChange in the onclick method of my button in Activity. But it…

tommybomb
- 53
- 9
0
votes
1 answer
Android Studio Kotlin, notifyItemChanged not calling OnBindViewHolder
I am trying to make a game of life grid based game in Android Studio using kotlin. Essentially, every second the grid will update based off a set of rules. However, I can not for the life of me get the grid to update.
For some reason,…

Colt Magri
- 19
- 3
0
votes
0 answers
RadioButton items not resetting in RecyclerView
This has been asked before but those solutions didn't help me out. I have a RecyclerView that is scrollable and only partially visible on the screen at any one time. It holds a list of RadioButtons and some text related to each item. When you click…

user443654
- 821
- 1
- 7
- 21
0
votes
1 answer
How to update recyclerview from another activity (button) JAVA
Im building a notes app and got stuck on the stage where I want to update my StaggeredRecycleView from another activity after pressing a button. The different options to update the recycleviewadapter is not available to me for some reason. thank you…

Aous Al-sabri
- 15
- 1
- 1
- 6
0
votes
0 answers
Android RecyclerView with ViewBinding - notifyItemChanged only works the first time
So I have my RecyclerView setup with ViewDataBinding and I'm showing a ProgressBar on click of a button inside the item. The ProgressBar shows and pops a dialog, on cancelling dialog I can notifyItemChanged to hide the ProgressBar, it only works the…

Mohsin Falak
- 429
- 6
- 22
0
votes
1 answer
Has anyone got notifyDataSetChanged() working in Kotlin?
I have a RecyclerView which displays a list of short phrases read from the MutableList modSamplePhrases. When an item is tapped, a DialogFragment pops up which shows the phrase from the list item and allows it to be edited.
When the edit is…

eggdeng
- 148
- 9