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
1 answer

Progress Handler in android list base adapter

Below is the code snippet for progress handler in an activity: It works fine with a class which extends Activity but I want to use it with a Baseadapter... Handler progressHandler = new Handler() { public void handleMessage(Message…
Ankit HTech
  • 1,863
  • 6
  • 31
  • 42
0
votes
1 answer

how to remove item checked

I have my Box adapter that extends BaseAdapter public class BoxAdapter extends BaseAdapter { Context ctx; LayoutInflater lInflater; ArrayList objects; CheckBox cbBuy; BoxAdapter(Context context, ArrayList products) { …
user1706819
  • 125
  • 1
  • 4
  • 17
0
votes
2 answers

refresh viewpager, lsitfragment or adapter?

i have a main class that hold a actionbarsherlock with tabs and viewpager here is it: public class HSG_Handball extends SherlockFragmentActivity { ViewPager mViewPager; TabsAdapter mTabsAdapter; TextView tabCenter; TextView…
StefMa
  • 3,344
  • 4
  • 27
  • 48
0
votes
1 answer

Android - where are new classes created?

I try to get on top of Android (two tutorials successful), I came across this problem: Step 5 of http://developer.android.com/guide/topics/ui/layout/gridview.html, says "create a new class..." where to create it? Eclipse says "in its own file",…
0
votes
2 answers

How to load Images in BaseAdapter from JSON in Android

I have created a custom list containing TextView, ImageView and Button. Now I am trying to display Images from the JSON url but when I run my code I receive a NullPointerException. I don't know why I am getting this Error because the TextView and…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
2 answers

setting text in view holder text view from an arraylist

i am working on implementing list view, i have user BaseAdapter class.i am trying to setText in holder's text view field from an array list but without any success.Problem is in getView method's HashMap> map =…
maddy
  • 4,001
  • 8
  • 42
  • 65
0
votes
1 answer

How to implement AddTextChangedListener on a Custom ListView (BaseAdapter)

In my application I have created a custom listview containing textview, imageview and button and i am able to sucessfully load the json data in that list. Now I want to implement a textwatcher so that I can sort my list and can only view those items…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
2 answers

How to add ImageView, TextView and Button in ListView in android

In my application I am trying to create a ListView that contains an ImageView a TextView and a Button. I have created a separate XML file and drag all the above mentioned elements in that XML and in my main java file I have created an Object of…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
1 answer

How to update ProgressBar which is a child view of GalleryView android

Is there any way to update the progress bar which is child view (row) of GalleryView with baseAdaptper. I have tried some with this code mProgressBar = (ProgressBar) ((View) mGalleryView.getChildAt(position)) …
vinay kumar
  • 1,451
  • 13
  • 33
0
votes
1 answer

Change row height in listActivity when pressed

I have created a ListActivity class, with a custom Adapter. Rows are simple: TextView and a Button. Implemented getView method is as below: public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { …
Adriano Bellavita
  • 143
  • 1
  • 3
  • 12
0
votes
1 answer

Using filter in listview adapter inflate

I'm having problem I can not do a search on my listview! I tried to implement listview with inflate and do a search, but unfortunately I could not ... There appears no error in the logcat and tried to debug but unfortunately apparently it's alright…
0
votes
1 answer

Android fill listview header

I am building an news application. I want to display news in a ListView with data from a url. But I need to skip first row, instead of putting data in first row to display a ListView header. This is inflated with different layout, but I cannot…
Silvio Marijic
  • 483
  • 4
  • 12
  • 22
0
votes
1 answer

Filter on Custom BaseAdapter not working

I have a BaseAdapter and want use filter it. Its filled with object (1). I want filter using the field "nome". Its give me error when i try use the filter. check the code: Object Contato public class Contato { public static final String…
Yory
  • 33
  • 6
0
votes
1 answer

Custom Endless ListView Android

I'm trying to do something like endless adapter but not able to accomplish it and as a result my app is crashing. What i tried to do is that initially i wanted loaded 10items in listview and add foorterview at the end of listview.If user clicks on…
Viking
  • 127
  • 2
  • 13
0
votes
1 answer

Coverflow recenters itself while scrolling, when OnItemSelected changes other views

Dear Stackoverflow community, i have a pretty wierd problem. First of all i built some kind of a "chooser" activity, which is nothing more than a WheelView on the left side, a Coverflow in the center and another (smaller) coverflow beneath that.…
Geki
  • 247
  • 2
  • 11
1 2 3
99
100