android-adapter Questions
1
I got a ViewPager which holds Fragments via FragmentStatePagerAdapter. Let's say the pager initially holds the following pages (Fragments):
A - B - C - D
When the user swipes, he can move from A...
Quadri asked 8/11, 2013 at 14:29
1
Solved
I have a custom Adapter that I use to display custom objects in a ListView. Furthermore, I used a SearchView that allows me search through the ListView and filter out results. However, I have notic...
Octavla asked 1/2, 2015 at 3:59
3
Solved
I have a simple code snippet for implementing custom listview.
My code is as follows:
WeatherAdapter.java :
public class WeatherAdapter extends ArrayAdapter<weather>{
Context mcontext;
...
Ukase asked 22/9, 2014 at 4:24
2
Solved
I have an adapter class :
public class AdapterAllAddress extends BaseExpandableListAdapter {
private Context context;
public AdapterAllAddress(Context context,
ArrayList<AllAddressesGroup>...
Carp asked 11/2, 2013 at 0:38
2
Solved
I have a navigation drawer in which there is a ViewPager that extends a Fragment. When i click the item of drawer i open the viewpager in which there are three fragments. It works perfectly. but if...
Ferebee asked 14/1, 2015 at 18:5
2
I'm trying to use Espresso (2.0) to verify that the text in in a list adapter item at a given position is correct, and for the life of my I can't figure out the correct methods to call.
My Adapter...
Mamey asked 23/12, 2014 at 15:59
2
Solved
Prior to the introduction of RecyclerView (and its mandatory ViewHolder pattern), I usually delegate any click events to its corresponding Activity/Fragment using setOnItemClickListener(). (Because...
Didst asked 24/12, 2014 at 6:50
2
Solved
I have a ListView with an adapter which layout has a Switch, so every item in the lists has a switch.
I want to use this code:
mySwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() {
...
Mammary asked 18/12, 2014 at 1:50
2
Solved
Context
I want to have a list with 3 significantly different layouts for list items so I make my adapter that based on type of item to display creates appropriate view.
e.g. i want to list some ima...
Feinberg asked 24/11, 2014 at 7:1
3
Solved
This question is a little different from others of a similar title. I am not trying to update the data in the list, I am trying to update the look of the list.
My app is fragment based using the s...
Draper asked 20/6, 2012 at 15:45
2
Solved
i've a listview on my activity , when I reach the end of listview , it calls async and it getting new data using json .
this is the async and baseAdaper codes :
ListAdapter ladap;
private class ...
Heimdall asked 8/11, 2014 at 4:57
2
Solved
In one of my past projects I implemented a "Time Picker Carousel". It is based on a HorizontalScrollView. The user can pick a time while scrolling this view. The time value is calculated from the X...
Weekly asked 13/10, 2014 at 13:48
2
Solved
I have a PopupWindow that is called from a Fragment and everything works except my Spinner. When I click in my Spinner it crashes and gives the error:
"android.view.WindowManager$BadTokenException...
Jory asked 19/9, 2014 at 11:10
3
Solved
whenever you update a GridView/ListView you call notifyDatasetChanged on the adapter which re-populates the the list with the new data removing everything that was currently in the list.
now take ...
Catlaina asked 19/8, 2014 at 0:22
3
Solved
I am using an ListAdapter to populate a ListView like this:
static final String[] PROBLEMS = new String[] {"one", "two", "three" };
/** Called when the activity is first created. */
@Override
pub...
Theorize asked 10/3, 2012 at 15:14
2
Solved
If I have a ListView with a CustomAdapter and let's say I have this refresh() method that refreshes the list with new results, should I:
Call new CustomAdapter(...) upon initialization, and every...
Matchmaker asked 19/7, 2014 at 1:45
2
Solved
I have an AsyncTask that does some number crunching (more details in the next few lines) in the doInBackground() method. The data manipulated in doInBackground() is the data associated with a ListV...
Sapling asked 22/6, 2014 at 3:18
2
Solved
I am developing an application in which I need to implement radio buttons in list view. I want to implement a list view having one radio button and two text views in each row. And one button "...
Fustian asked 25/1, 2014 at 6:51
2
Solved
I'm having a few problems getting my listview to show up in a simple application i'm writing. For some reason the getView() method of my adapter class isn't getting called. However, when when getCo...
Focal asked 12/9, 2011 at 17:45
0
I am trying to display received messages using custom adapter on list view , until now everything is working fine , but when I press back and come back and launch this activity again , only message...
Holding asked 22/2, 2014 at 22:0
2
Solved
I am trying to set custom adapter to display messages to user using demo chat application on list view , but receiving errors in getView method of my custom list adapter .
I did double check on m...
Kilt asked 21/2, 2014 at 11:35
1
Solved
I have a sparse array of values which I want to populate in a Spinner, and when the item is selected, I want to get the id (which is the key from the sparse array).
What is the preferred way of c...
Igor asked 10/2, 2014 at 12:56
2
Solved
Is it possible to have a visibility listener on each listview's item? Like: on user sees the item, do something. On item is hidden, do something else.
I want to check when a item "enters" or "exit...
Negative asked 28/1, 2014 at 18:42
1
So here's the story:
I want to use two layouts in my adapter. So basically, I need to have an if in the newView() to determine which view to return and and an if in bindView() to know as well what...
Panettone asked 28/1, 2013 at 7:19
2
I'm going to begin by saying that I have read in detail almost every question on SO that I can find related to custom checkable list items and selectors. Many of them have similar issues, but none ...
Lass asked 29/11, 2012 at 13:34
© 2022 - 2024 — McMap. All rights reserved.