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

String Array With Custom Adapters

Can we use String array with custom adapter and data should be display in Listview? I mean something like that String [] s= {"cars","bike","train"}; Now how this string array will attach with Custom adapter and how data will show in the…
Jitender
  • 123
  • 1
  • 12
2
votes
1 answer

Espresso: android.support.test.espresso.AmbiguousViewMatcherException for AdapterView

I am trying to run an espresso test using onData and everything works fine for a view that has only one AdapterView inside of it. However, when the screen shows a view that has multiple adapter views nested in it, I…
mikesol
  • 1,177
  • 1
  • 11
  • 20
2
votes
2 answers

Toast Item selected - AdapterView/ArrayList

I have created an Adapter arraylist that uses a LayoutInflater so images keep ratio. I am trying to perform a simple toast of the item title selected i.e "Beef". Everthing workd as expected except I am getting an output from toast of, example test…
Awatatah
  • 455
  • 1
  • 5
  • 19
2
votes
0 answers

Displaying tabular data in Android

Coming from years of .NET Framework programming experience, I wonder if there is anything in Android out of the box that resembles the .NET WPF component DataGrid: it should be something like an Android AdapterView, where you set the Adapter…
user1737538
  • 497
  • 2
  • 7
  • 16
2
votes
2 answers

getView not returning view parameters

I have an AdapterView that displays a list and headers that separate different list categories. The list is populated by a SQLite database with user input. So far everything is working. I want to remove the headers when there are no items in the…
user3629714
2
votes
1 answer

Why does my AdapterViewAdapter flicker when used in an AppWidget?

I'm creating a simple homescreen widget that displays a simple slide show of images. For switching between images, I'm using an AdapterViewFlipper that simply displays the next image every 1.5 seconds. This works fine but during the transition from…
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
2
votes
2 answers

How do you retrieve the array adapter currently set for a spinner? Android OS, Droid

Looking to create a menu toggle that switches between two possible arrays for a spinner. For example, if the spinner is set to show array A, then when I press this menu button, I want the spinner to be set to array B. If I press it again, I want it…
Sean
  • 41
  • 2
  • 6
2
votes
1 answer

how to delete data from AutoCompleteTextView with adapter directly

I have AutoCompleteTextView which uses to search the value from database. On Click of filtered value it's set to the AutoCompleteTextView which can be use to update the value for the particular data. I would like to incorporate delete ImageView…
2
votes
1 answer

Spinner with custom adapter show the selected item Android

in my program use a spinner with a custom adapter. The adapter is: private class lenguageSpinnerAdapter extends BaseAdapter implements SpinnerAdapter { private ArrayList lenguages; public lenguageSpinnerAdapter(Context…
2
votes
1 answer

Override or Add Single Row in Custom ListView

I am working on a menu list for an app I am making. I followed this tutorial for creating it (changing values as needed) - http://www.ezzylearning.com/tutorial.aspx?tid=1763429. Now my list isn't super complex. It's going to have the same data every…
2
votes
0 answers

Is there an OpenGL (or another good working) solution for coverflow?

All coverflow solutions I've found had bugs and were based on the Gallery view (which is deprecated and is very inefficient, especially with memory,read here and here) and they have bugs when you set some sizes for the images . The only one that…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
2
votes
1 answer

Custom AdapterView

Goal I want to have a list (not a ListView) in a scrollView Problem ListView in ScrollView does not work Possible solution I think the solution is todo the following: Create a class that extends AdapterView Set the class in the XML layout Fill the…
Extranion
  • 588
  • 8
  • 25
1
vote
1 answer

Some basic methods are unrecognised by Adapterview

I have a listactivity where I read/set diferent controls such as textviews, buttons or listviews in OnCreate method and also I use diferents methods of this controls inside onCreate method. Now that I know that everything works well I would like to…
1
vote
2 answers

setOnItemClickListener gives errors in eclipse

I try to get a finish of this activity with a simple click on the full image. Then it should return to the gridview activity, from where it was selected. But i just cant get it to code, eclipse keeps telling me [ The method…
Jean Paul
  • 11
  • 1
1
vote
1 answer

Android Gallery widget: triggering method on image change

public class GalleryImageAdapter extends BaseAdapter{ private Activity activity; private ArrayList listOfImages; public ImageLoader imageLoader; public GalleryImageAdapter(Activity a, ArrayList listOfImages){ …
Adam
  • 8,849
  • 16
  • 67
  • 131