Questions tagged [baseadapter]

BaseAdapter is an abstract Android adapter class which is used to implement specialized adapters.

From the documentation of the BaseAdapter class:

Common base class of common implementation for an Adapter that can be used in both ListView (by implementing the specialized ListAdapter interface) and Spinner (by implementing the specialized SpinnerAdapter interface).

Tag Usage:

1659 questions
0
votes
2 answers

Multiple Clickable Zones ( Thumb imageview + textview + listview row ) w. Base Adapter

Long story short im trying to add the clickable functionality from the top half of the code below to the custom adapter below. I found this tut(modified version of the source in the top part of the code below-currently not…
ChuckKelly
  • 1,742
  • 5
  • 25
  • 54
0
votes
0 answers

Get elements from BaseAdapter

I'd like to get elements added in a GridView with a BaseAdapter. Here is my code : GridView grid_ordi = (GridView)findViewById(R.id.grid_ordi); CaseAdapter casesOrdi = new CaseAdapter(this,…
thomas-hiron
  • 928
  • 4
  • 21
  • 40
0
votes
2 answers

ListView with BaseAdapter are not responding to OnLongClickListener

I know that there are some topics that talk about this behavior but I haven't see there a solution that I can use. the problem is the following, I have a list view that uses a BaseAdapter which implement OnLongClickListener. In the GetView method I…
Nativ
  • 3,092
  • 6
  • 38
  • 69
0
votes
2 answers

Extending BaseAdapter for ListView getView updating the view improperly

I have a RSS feed viewer and wanted to show the user the last time they listened to a particular feed. This works for the first items loaded in the list (the items that are visible in the current view), but as the user scrolls down the listview, the…
Darcy
  • 5,228
  • 12
  • 53
  • 79
0
votes
2 answers

extends BaseAdapter results are overwrite previous ArrayList Items

i have a DateApapter class like this.. public class DateAdapter extends BaseAdapter { ... } i call this DateApapter in 12 different places from my "mainActivity" by using constructor and store this result in a DateApapter…
bCliks
  • 2,918
  • 7
  • 29
  • 52
0
votes
1 answer

android: customizing the ExpandableListView

I'm trying to customize an expandableListView by adapting some code I found. This invokes a custom adapter, and inflates the required rows for the list view. My problem: I need to use that thing with other layout components, so in order I need to…
Droidman
  • 11,485
  • 17
  • 93
  • 141
0
votes
1 answer

Write a Custom Adapter for ListView

I'm trying to make list of items, where each item may have other item with a value connected to it. Something like: Item 1 **SubItem1.1 - val1 **SubItem1.2 - val2 Item 2 **SubItem2.1 - val3 Item3 **SubItem3.1 - val4 **SubItem3.2 -…
EirikO
  • 617
  • 8
  • 19
0
votes
1 answer

How to prevent repeated Data while searching using BaseAdapter Android

I am trying to search from CustomListView implementing Filterable in BaseAdapter, but it provides repeated search data.. @Override public Filter getFilter() { // TODO Auto-generated method stub // Here myList…
moDev
  • 5,248
  • 4
  • 33
  • 63
0
votes
2 answers

Change data in listview adapter dynamically

I have a listview which has a custom adapter where each row has a textview on the left and an edittext on the right of it that the user can use to modify an entries value. The values that are placed in the EditText views within each view by default…
sam
  • 2,469
  • 8
  • 37
  • 57
0
votes
1 answer

ImageView is not showing the youtube thumbnail

I am new to Android, I am developing an app, where in I search the youtube using the .... YouTubeService service = new YouTubeService('blah','blah') .... VideoFeed videoFeed = service.query(query, VideoFeed.class); List videos =…
Cavish
  • 11
  • 1
  • 5
0
votes
1 answer

Android NotifyDataSetChanged And BaseAdapter

Im a little bit confused about this adapter element (NotifyDataSetChanged) cause when I use it, my listview doesnt update. My work scenario: First ive created a void so that whenever I Update something on listview's item I could just call again my…
Androyds
  • 391
  • 1
  • 3
  • 20
0
votes
3 answers

Filtering custom adapter returning incorrect results

Check: I am trying to implement filter on my ListView. But I am facing a very strange kind of problem. If I type letter T in the EditText the ListView is getting filled with names starting from B , J. Please help. public class MyCustomAdapter…
android_newbie
  • 667
  • 2
  • 14
  • 32
0
votes
1 answer

NullPointerException when scrolling fast

I'm trying to include category fields into my coustom ListView. It works fine until I start scrolling fast. When scrolling very slow this error doesn't occur. It's really confusing me. Could anyone please help? My Code: package…
0
votes
1 answer

Android, alternating row layout in a ListView, can it be done with ArrayAdapter?

I am aware that you can extend BaseAdapter and override the getViewTypeCount() and getItemViewType(postion) methods and get various row layouts that way. However, I have just done a tutorial in which ArrayAdapter was extended and getView(int…
mgibson
  • 6,103
  • 4
  • 34
  • 49
0
votes
0 answers

Specified child already has a parent android

Morning!, I don't know, how can I do to fill a dynamic custom base adapter?, this is an example of my code: public class Row{ private Context context; private CheckBox checkbox; private String kind; public Row(Context context, String kind){ …
user1893074
  • 103
  • 1
  • 3