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
4 answers

Remove row from listview using custom baseAdapter

Hello I have a ListView with CustomBaseAdapter.The listview contents EditText and DeleteButton .Now i want to delete the row on the button click event. I tried adapter.removeViewAt(int) method but it gives me exception that removeViewAt(int) not…
nyt23
  • 63
  • 1
  • 1
  • 9
0
votes
1 answer

implement search filter on listview filled from database

I am filling ListView from the data fetched from Database. I am using a CustomAdapter which extends BaseAdapter for filling the ListView with data. Each row of the ListView contains 2 TextView and 1 CheckBox. Now what I want to do is place one…
android_newbie
  • 667
  • 2
  • 14
  • 32
0
votes
1 answer

Android gallery, him adapter, Broadcast and service dont update gallery view

I have a gallery with custom base adapter, and populate from a arraylist with images path, sending from a service with a BroadCast. The arraylist with paths isnt empty, i call notifidatasetchange but gallery dont change: This is the…
colymore
  • 11,776
  • 13
  • 48
  • 90
0
votes
1 answer

trouble in getViewTypeCount & getItemViewType methods

I wish to insert an ads on top of the listview, however from the example provided by the admob it use BaseAdapter in the constructor while mine I used ArrayList hence I am very confuse at the moment please help me out. public class…
Eric
  • 1,547
  • 2
  • 18
  • 34
0
votes
1 answer

setting listview only one row difference

I am trying to make my listview only one row with just imageview. Here is my adapter: public class ListAdapter extends BaseAdapter { private Context activity; private ArrayList> data; private static LayoutInflater…
Eric
  • 1,547
  • 2
  • 18
  • 34
0
votes
1 answer

Access SQLite db from non-activity class

I have three classes, Activity - displays the listview with my single_list_item.xml SQLiteOpenHelper - I'm currently running my queries here. My activities and my SQLiteOpenHelper talks together well. However I'm not sure how to run a query from…
Alex07
  • 91
  • 1
  • 1
  • 12
0
votes
1 answer

BaseAdapter not populating listview

So i have a base adapter class that I built. I also try to use this in one of my activities. I have a xml for the parent layout and an xml for the rows to inflate. However, these components are not linking together. The app doesnt crash but the…
Goku
  • 1,565
  • 1
  • 29
  • 62
0
votes
1 answer

Gallery reset on screen rotate

i have a gallery view, with a BaseAdapter, and i download images from internet, download the image, and set to gallery async. There are about 2000 images. When i rotate the screen, the asyntask continues, but the gallery set empty and dont show any…
colymore
  • 11,776
  • 13
  • 48
  • 90
0
votes
1 answer

Updating text for multiple instances of a TextView from a CountDownTimer

I am having an issue when attempting to update a TextView's text. I have a MainActivity in which i have created a layout with an empty ListView. To fill this ListView with custom ListItems i have created a custom AsyncTaskLoader that retrieves…
0
votes
1 answer

how to main position of listview while scrolling in android

I Used Base adapter for listview, and while scrolling ,positon changes., how to over come this, And this was my Base Adapter Class. Hello, I Used Base adapter for listview, and while scrolling ,positon changes., how to over come this, And this was…
Vishnu
  • 349
  • 3
  • 8
  • 16
0
votes
2 answers

Why getView() of BaseAdapter showing image multiple times?

I'm using the following code to make a custom listview. I have to show image dynamically, so all the images are added to this in Linearlayout. The problem is that these dynamic images add multiple times. Below is the code of my getView(). …
Gaurav Gupta
  • 1,550
  • 4
  • 18
  • 35
0
votes
1 answer

Customize spinner in android

Hie. I am newbie to android platform. I have a question. I am working with spinner. I want to customize this spinner. And I am done with that. I am facing a minor problem here. In the below image you can see the spinner and the text within that…
android developer
  • 1,253
  • 2
  • 13
  • 43
0
votes
2 answers

Android ListView with custom layout getCheckedItemPositions

I have a ListView with custom layout with CheckBox to select multiple items to delete but list.getCheckedItemPositions() always returns 0. I can't find out what I am missing. How can I populate checked item list when user checks a CheckBox to true…
nLL
  • 5,662
  • 11
  • 52
  • 87
0
votes
1 answer

NetworkOnMainThread Exception in getView method while loading images to Gridview

I need to fetch images from url's and Load them into gridview. I am getting network on Main thread exception in the getView method of my ImageAdapter class which extends Base Adapter. How can i solve this using a Separate thread or an Async…
SKK
  • 5,261
  • 3
  • 27
  • 39
0
votes
3 answers

Android, How to disable GridView's onItemSelected on some items?

It seems that the behavior of gridview's onitemselected is controlled by Android, how can I disable some items to callback the onItemSelected()? my code: @Override public void onItemSelected(AdapterView parent, View view, int position, …
herbertD
  • 10,657
  • 13
  • 50
  • 77
1 2 3
99
100