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

Trouble using single BaseAdapter to feed multiple listViews

I had posted a question in here yesterday. Since I did not add proper code snippets, I hardly got solution. So here I am, posting it all new. Just to keep active on the questions. I have three tabs- A, B, C. Each of these tabs is an ActivityGroup…
0
votes
0 answers

Use of single BaseAdapter for multiple ListViews

I have three ListViews in three tabs A, B and C respectively. All of them obtain data from a common adapter class. However, problem arises when I add search options and try to change list in any tab, say tabA. As soon as I have done it and switch to…
Renjith
  • 3,457
  • 5
  • 46
  • 67
0
votes
2 answers

HorizontalListView not working

I need a HorizontalListView in my app and as there is no such existent widget in Android SDK, I am using this one instead of building one on my own. But the problem is the list item is not maintaining its size and taking the whole width of the…
Mehedi
  • 394
  • 1
  • 3
  • 19
0
votes
1 answer

android adapterView addheaderView

I'm trying to make (for learning purposes) my own implementation of a simple AdapterView. Now I have a question: How to add a headerView in my custom adapterView like addHeaderView in listView? I have realized the waterfall part by using…
JavaFreshman
  • 53
  • 1
  • 1
  • 5
0
votes
1 answer

How to remove setAdapterList View

I am trying to implement list. Here is start.xml file which have a text box i which i am typing any word and a list of words will open containing this word:
User42590
  • 2,473
  • 12
  • 44
  • 85
0
votes
2 answers

android listview adapter throw exception

i build an adapter for a listview_item which contains image, textview and textbox, i don't know why the application throw an exception, class RestaurantAdapter extends BaseAdapter { private static LayoutInflater inflater = null; private…
user user
  • 2,122
  • 6
  • 19
  • 24
0
votes
1 answer

ArrayAdapter - Resource$notfound

I have an arrayadapter which populates 4 textfields. In the getView method when it tries to populated the textfields with the values. I get the error android.content.res.Resources$NotFoundException: String resource ID #0x11. Could you please guide…
0
votes
1 answer

Array Adapter not working

I am trying to use array adapter to populate my listview. I build an array list of objects from POJO class to the array adapter. When i try to instantiate the arrayadapter class by passing the arraylist of objects, I am gettin null pointer exception…
0
votes
3 answers

Use of Adapter in android

What is adapter in Android what is the use of it?? I googled it but couldnt find out a clear solution.can anyone please explain me what is Adapter and its use in Android. If anyone knows any link regarding this topic please provide me..it will be…
Kittu Rajan
  • 775
  • 1
  • 9
  • 7
0
votes
1 answer

Display object from base adapter android

I want to display and run a button below a list which is loaded using the tenantlistadapter class. My problem is that i dont know where to put the object. my class is as follows public class TenantListAdapter extends BaseAdapter { private…
Dimitri
  • 1,924
  • 9
  • 43
  • 65
0
votes
3 answers

"java.lang.IllegalArgumentException: View not attached to window manager" when calling Toast

I get the following "java.lang.IllegalArgumentException: View not attached to window manager" this happens when the toast.show() is called. Please any explanation? Thanks a lot!!!! EDITED: I post all the code + the logcat CODE - NOTE the error…
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
0
votes
1 answer

Need suggestions for a "TableLayout backed by adapter"-like View

I want a 7x4 table backed by an adapter that never scrolls, but rather will fit to take up its available space, sizing each cell in a uniform way. I want it backed by an adapter because it has built-in functionality for taking care of data set…
0
votes
1 answer

Spinner converter android

I am having some confusion with the spinner class in android. What I want to is make a converter, where the user picks a unit they want to convert, then in the second spinner pick the output unit. Ex Spinner 1: Yard² to Spinner 2: Feet². Im not sure…
0
votes
1 answer

Very basic Spinner issue with Android AIDE

Hi I'm completely new to android programming and use AIDE via tablet. I'm trying to create a very basic program with a Spinner box that gives output on the selection Ive made via an TextView or System.Out.printIn. (Perhaps the next step up from…
0
votes
3 answers

android GridView does not work in my emulator:does not display it though no error is shown

I tried everything. I tested by copy pasting the example here from developer website but still didnt do work. it just shows a blank space whee the gridview was supposed to come. Here is my code. EnterApp.java package…
1 2 3
18
19