Questions tagged [android-adapterview]

An AdapterView in android is a view whose children are determined by an Adapter.

An AdapterView in android is a view whose children are determined by an Adapter. Examples of AdapterView include:

  • ListView
  • GridView
  • Spinner
  • Gallery

Useful links

286 questions
3
votes
2 answers

convertView loses onitemClick after the listView is scrolled

I'm having a slightly weird error here on my adapter. The view the adapter is creating is a thumbnail on the left side and a table with a few rows. Each row have two textviews. One of the textviews have the android:autoLink="web" property set and…
Budius
  • 39,391
  • 16
  • 102
  • 144
2
votes
1 answer

How to generate dynamic RadioButton with a radiongroup in adapterView?

I have a Dynamic list, and I want to show that list in adapter view with radio buttons. in one group. I used: public class Type2Adapter extends BaseAdapter{ Context context; LayoutInflater inflater; ArrayList oplist; …
Siten
  • 4,515
  • 9
  • 39
  • 64
2
votes
2 answers

Android AdapterView Click Listener Parameters - position & id

I'm setting a long click listener on a listview and I want to use the index of the clicked item to retrieve the corresponding object. Method signature and parameter definition according to android docs public abstract boolean onItemLongClick…
tpow
  • 7,600
  • 11
  • 59
  • 84
2
votes
0 answers

Multiple markers at this line - Line breakpoint:HelloListView [line: 34] - onItemClick(AdapterView, View, int, long) for the following code

can any one help me how to resolve this. Multiple markers at this line - Line breakpoint:HelloListView [line: 34] - onItemClick(AdapterView, View, int, long) for the following code. this is the error for the following…
Ranganath
  • 21
  • 2
2
votes
1 answer

First item in gridview does not change in the AdapterView.OnItemClickListener

I have a grid view of images. When click on an image I set a little check mark drawable to mark it as selected, and when another item is clicked I go through all items and remove the check mark. The problem is my first item in the grid view does not…
RufusInZen
  • 2,119
  • 1
  • 19
  • 26
2
votes
0 answers

Can't get the current item on AutoCompleteTextView adapter

I am creating an app that has an autocompletextview, wherein the user will see suggestions as he type just like a combobox. What I have accomplished: Create a custom adapter for the AutoCompleteTextView. When I typed a text, list of suggestions…
2
votes
7 answers

Why isn't toString() always automatically invoked

So why isn't toString always invoked? This is an example using the Android API. E.g @Override public void onItemSelected(AdapterView adapterView, View view, int position, long id) { Toast.makeText(this, adapterView,…
whirlwin
  • 16,044
  • 17
  • 67
  • 98
2
votes
2 answers

List AdapterView onItemClick is not triggering

In the ListView onItemLongClick is getting Triggered but onItemClick is not getting triggered. I want both onItemClick and onItemLongClick to trigger. onItemClick will call item detail activity onItemLongClick will favorite the item Here is my…
Kaleel
  • 43
  • 7
2
votes
1 answer

How to get view and holder object outside getView method?

I have adapter and fragment. Consider this scenario : Adapter has Edit Text By default edit text is not editable Fragment has one edit icon On click of edit icon adapter's edit text should became editable Here is fragment code:…
2
votes
0 answers

Change layout weight for last row in RecyclerView with GridLayoutManager

I need to display grid of items, with the last row centered, if it is not full. I would like to achieve the following behavior: I have started with RecyclerView and GridLayoutManager, however, it looks like it is not possible to customize it this…
2
votes
1 answer

Contract between Adapter and AdapterView

Is there some place which describes the contract between Adapter and AdapterView, or between ListView and ListViewAdapter. I'm trying to create my own ListView Adapter. It is not clear to me the sequence of method invocations nor who maybe calling…
David
  • 2,770
  • 5
  • 35
  • 43
2
votes
0 answers

Expandable List view child item selection in android?

In expandable list view set the data based on the parent. In this parent has child item selection, the selection set image view for each child item selection. But in this selection set the other parents child items. Below code for parent value…
Saravanan Selvam
  • 163
  • 1
  • 5
  • 17
2
votes
0 answers

Custom Animation on a ViewFlipper using AnimatorSet

I have two questions, the first being simply: What is the easiest manner in which to add a custom flipping animation to an AdapterViewFlipper (where more than one property must be changed sequentially), preferably the solution using values defined…
2
votes
0 answers

Listview highlighted item for multiple selection

i have written code for highlighted item from listview which i am click but it is working only for 1 item at a time. I want to highlighted multiple items . public class myadapter extends ArrayAdapter { private Context context; …
2
votes
3 answers

What are the conditions under which an adapter doesn't update attached view

I am using this library to create swipe-able cards : https://github.com/Diolor/Swipecards The view which makes the swipe-able cards control, gets attached to an adapter and sources it's drawing from it. In my implementation, every card has a button,…