android-adapter Questions
2
Solved
I have a RecyclerView that can show items as list, small grids or large grid and this can be change at runtime. Depending on what style user chooses i inflate different layout in onCreateViewHolder...
Expedient asked 26/10, 2015 at 7:38
2
Solved
For some reason I am getting a null pointer exception pointing to videosFound when it is indeed not null. Even the parameter, adapter, that is being passed in is not null. I check and verify this s...
Parturient asked 25/3, 2016 at 0:53
3
Solved
I have made a horizontal recyclerview inside a fragment. Now when I click on any item I don't see the on click listener working. Here is my code for the Adapter class:
public class FeaturedProduct...
Grane asked 23/2, 2016 at 17:46
2
Solved
logcat error : No adapter attached; skipping layout
I changed the context argument with getActivity(), but the app is still not running.
public class FragmentActivity extends Fragment {
p...
Warden asked 13/2, 2015 at 23:37
3
Solved
the contactsList is empty until the readContacts()method was executed, in other words, when contactsView.setAdapter(adapter) was executed, the contactsList is empty, so why this code still can show...
Leotie asked 16/1, 2016 at 12:4
2
Solved
I have a viewholder with multiple viewtypes.
When scrolling onBindViewHolder is only called when getItemViewType changes value. This causes my list items to not be updated properly.
Is this a bug...
Kodok asked 13/11, 2014 at 13:38
1
Solved
I have a RecyclerView with video previews in it.
When the user is scrolling, the videos should automatically be played on the recyclerView-items which are visible to the user (when scroll-state is...
Terena asked 11/1, 2016 at 10:40
1
Solved
Is their a way, by using the ObservableList class from the new Data Binding library and the MVVM pattern, to avoid using "notifyItem(s)..." methods from the Adapter class?
Or if not what could be...
Intercross asked 1/12, 2015 at 12:1
1
Solved
I'm always getting this error when i'm setting the finish method inside adapter.
11-28 09:46:09.661 8636-8646/? E/art: Failed sending reply to debugger: Broken pipe
11-28 09:46:17.709 8636-8636/c...
Patton asked 28/11, 2015 at 14:49
3
Solved
I have a StaggeredGrid in a RecyclerView and I am trying to dynamically set the image height in the onBindViewHolder. I thought the StaggeredGrid was supposed to handle all this automatically, so I...
Kentledge asked 1/7, 2015 at 11:52
4
I have a custom adapter which extends ArrayAdapter, it implements the view holder patterns to show data (text + image) from a web service.
for lazy loading of the images I use the async tasks patt...
Melitamelitopol asked 10/11, 2012 at 13:43
3
I'm getting this error but I don't know what is causing it...perhaps something to do with the fact that this is being initialized in a fragment and not in the activity itself. Edit: included ...
Fibrillation asked 17/6, 2015 at 15:11
0
findLastVisibleItemPosition returns -1 with the following sequence:
onViewCreated() {
recyclerView.setAdapter(adapter = new Adapter());
adapter.updateContent(List<Content>); // will call n...
Floriaflorian asked 25/8, 2015 at 0:15
2
Solved
I have a use case where I need a reference to the parent RecyclerView from inside the adapter, specifically inside the onBindViewHolder method. So far what I am doing is assigning it to a private c...
Spheroid asked 6/7, 2015 at 14:30
4
Solved
I have a custom listview, that has 2 textviews and 2 buttons (play and delete button)
I want when I click the delete button to delete the current line.
My adapter class
import java.util.ArrayList...
Outmost asked 16/4, 2014 at 7:58
1
Solved
I'm faced with this problem
java.lang.UnsupportedOperationException
What I want to do is easy, I'll show you an example.
MyList
Blue
Red
Green
When I make an OnItemLongClickListener() for ...
Gifford asked 10/6, 2015 at 17:44
0
I have multiple lists in my Android app, the activities that contain those (recycle) listviews also contain other content. Putting a listview below the content works fine without any custom modelli...
Felder asked 5/6, 2015 at 20:11
2
Solved
i want to add a footer layout at the base of the recycler view.Below is my adapter view which inflates header layout as well as other items as well.Help appreciated!
public class SplitMembersAdapt...
Trellis asked 1/6, 2015 at 9:36
1
Solved
I'm using ViewPager with PagerTabStrip in fragment A and everything works fine. Items are populated. ...Until I replace A with B and then replace again B with A.
fragment xml:
<?xml version="...
Ascertain asked 27/3, 2015 at 16:33
1
Solved
I'm using RecyclerView as the base for my data list.
i've implemented custom RecyclerView.Adapter which is based on ArraList. on fetching data from the internet the code that i'm running is:
publi...
Tami asked 22/11, 2014 at 16:50
4
Solved
android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
Following numerous tutorials and example projects I've arrived at the following code which should fill a ListView with rows that contain multiple values out of a Line object.
Being a newbie progr...
Alurta asked 19/11, 2014 at 11:18
1
Solved
I am creating a Twitter client using Fabric but I can not create a custom onClick.
I created this custom adapter and tried to create a OnClickListener but not working. Always open in browser tweet....
Paisa asked 29/4, 2015 at 3:34
1
Solved
Assume we have an Activity with n TextViews that represent one line notes. These notes are stored somewhere (local database, network etc), and each time onResume() being called, the proper number o...
Slenderize asked 5/4, 2015 at 9:58
1
Solved
I have implement search for my application. For that I have used an adapter as well. I have loaded 30 items to the search screen. When I pressed letter z to search, then letter z belongs to 4 items...
Submarginal asked 30/3, 2015 at 7:19
1
I have customized expandable list view showing in Navigation Drawer. I have a click listener in Adapter I would like to send click event from adapter to my activity or fragment.
Is this possible i...
Paisley asked 17/3, 2015 at 6:45
© 2022 - 2024 — McMap. All rights reserved.