android-adapter Questions
1
I'm looking for a way to implement infinite scrolling in my Firebase app.
I'm retrieving my data the following way :
I have a list of keys (items a user created, items a user liked and stuff like...
Wonderland asked 21/9, 2016 at 16:43
2
Solved
For some reason, when adding a new item to the RecyclerView (should be inserted to the top of the list), it won't show up unless I scroll down the list and back up to the top, and without any anima...
Handwriting asked 3/1, 2015 at 18:4
3
I'm having a problem with the following methods:
int firstVisibleItemPosition = gridLayoutManager.findFirstVisibleItemPosition();
int lastVisibleItemPosition = gridLayoutManager.findLastVisibleIte...
Poundfoolish asked 10/7, 2015 at 5:44
2
Solved
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Recycler...
Osber asked 2/2, 2017 at 0:55
1
I am trying to update a progressBar which is the part of one of the RecyclerView items. I know I can do it in two ways,
Method 1: By refreshing the item row by calling notifyItemChanged(position)
...
Tercentenary asked 25/7, 2016 at 12:38
3
I would like to use ButterKnife to bind my views inside listView adpater.
I tried this, but i can not simply use my "spinner" var.
public class WarmSpinnerAdapter extends ArrayAdapter<Warm>...
Concrescence asked 30/11, 2016 at 13:53
2
Solved
I'm using ButterKnife to bind my views on my ViewHolder. My code is below:
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
private List<DataObject> data;
...
Diploma asked 17/7, 2016 at 6:16
4
Solved
I am new to Android development and I ran into a problem which I find difficult to solve. I am trying to figure out how to use an AutoCompleteTextView widget properly. I want to create a AutoComple...
Piemonte asked 17/7, 2012 at 12:37
2
Solved
I have a recycler view which is reusing view, my problem is that one viewholder contains a ViewPager and, if the recyclerview's adapter reuse the view where the viewholder is inflated then an excep...
Fletafletch asked 9/11, 2016 at 15:19
3
Solved
I have a RecyclerView. It has a custom layout and inside the custom layout is another RecyclerView. When I notify the recycler view that an item has been deleted, my main recycler view is updated b...
Yogurt asked 2/8, 2016 at 8:45
5
Solved
I wanna create a customized ListView like this:
I think that I have to use BaseAdapter but I have no idea about it.
Sheaves asked 2/5, 2013 at 8:43
1
Solved
What effect I want to have is :
number of Bottom Circle indicator must be half of page count when page width is half.
number of Bottom Circle indicator must be as much as page count when page w...
Quezada asked 1/9, 2016 at 8:33
9
Solved
My ListView is using an extension of BaseAdapter, I can not get it to refresh properly. When I refresh, it appears that the old data draws on top of the new data, until a scroll event happens. The ...
Leathery asked 4/2, 2011 at 23:0
2
Solved
I have a TabLayout in mainActivity with some tabs, tabs are Fragments.
And on each Fragment I have a ReclerView.
From the main Activity I want to call notifyDatasetChange() on my Adapter in my Frag...
Musky asked 5/8, 2015 at 12:27
4
Solved
I'm wondering if there's a way to add an item to the ListView without causing the reload of the whole list.
I have a BaseAdapter-derived ListView adapter, and when the underlying model gets a new ...
Hewitt asked 23/11, 2011 at 4:39
5
Solved
I am using a base adapter to set data in a listview dynamically. I tried to set listview height dynamically. It works perfectly if the textview inside it is single line. However if the textview is ...
Natasha asked 24/3, 2015 at 5:20
4
Solved
I'm trying to update a ViewHolder in a RecyclerView without rebinding the entire thing. According to the docs, I should do this by calling RecyclerView.Adapter.notifyItemChanged(int position, Objec...
Scrimmage asked 8/9, 2015 at 16:47
1
Solved
I am using recyclerview with footer everything is working fine. but i am not able to delete last item. Suppose we have 2 products in list now if user will remove one product then 1 product will rem...
Uncoil asked 6/7, 2016 at 11:0
6
I defined the following code to be able to set text in a certain position.
if(position == 0) {
holder.text.setText("blah");
}
What I would like is to check if the position is equals 0, and the...
Grayce asked 22/6, 2016 at 13:25
5
Ok let me explain what "does not work perfectly" means.
I have a listview without the android:stackFromBottom="true" parameter. I also have an ArrayAdapter with the regular getItem(position). I ca...
Blackandblue asked 28/3, 2014 at 16:27
2
Currently I have it so that an adapter has a reference to all the models in it. But is it better to let the presenter just hold the models and the adapter can simply reference them?
So for example...
Abiding asked 23/6, 2016 at 20:44
2
Solved
I need to add an Activity where I can list the elements of an ArrayList<CustomClass> and I've seen there's a newer and better way to display lists - RecyclerView.
My question is how to...
Rehash asked 13/6, 2016 at 9:59
3
Solved
I trying to refactor one of my activity class to implement mvp(using mvp mosby library) . I have a RecyclerView and in this view there is some items that some changes apply to them during the run t...
Monoacid asked 6/6, 2016 at 8:8
6
Solved
I have one ListView which can hold an image. It depends if image exists or not in SDCARD.
Here my example code:
public class MainActivity extends Activity {
ListView mListView;
@Override
pro...
Undergarment asked 11/10, 2011 at 16:9
5
Solved
I have a Custom adapter with a ListFragment but the adapters getView() is not getting called at all.
This is how the adapter looks like -
public class ModuleListItemAdapter extends BaseAdapter {...
Dupe asked 27/4, 2013 at 9:8
© 2022 - 2024 — McMap. All rights reserved.