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

Implementing OnItemSelectedListener On a ListView

hey there I'm trying to get the Listener to work, the application runs and all is fine but when i select an item in the ListView I get a Null pointer exception error java.lang.RuntimeException: Unable to start activity…
0
votes
3 answers

How can I make a view invisible after 3 seconds?

I am using a handler in the adapter file to make the view invisible after 3 sconds, but it does not update the view. Where is my problem and how can I fix it? @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated…
user3114723
  • 401
  • 1
  • 6
  • 17
0
votes
3 answers

How to remove the space from a list corresponding to an adapter, when I apply the function setVisible (View.gone) to the adapter?

I'm trying to hide a adapter when my object "TuMesaModel" be a administrator, this is the code public class TuMesaAdapter extends ArrayAdapter{ private String _id; public TuMesaAdapter(Context context, List
TuGordoBello
  • 4,350
  • 9
  • 52
  • 78
0
votes
2 answers

Weird behavior of ListView

I have weird problem with ListView on android 2.3. Application is simple todo list with EditText and ListView. Each time you write text and press ENTER text is added to ListView. Problem happend when I add 3rd element, order in ListView mess up (3rd…
Johnny
  • 8,939
  • 2
  • 28
  • 33
0
votes
1 answer

AutoComplete Edittext is not showing the filtered Listview details

I have a Listview in my asynctask and i am setting the adapter. I should implement the autosearch complete feature. My codes works fine but the list is not filtered when i enter the text in editable textview. @Override protected void…
0
votes
3 answers

View that can handle adapters but is not scrollable

Does a View that can handle adapters (e.g. ArrayAdapter) but is not scrollable exist? I would not like to go into workarounds (e.g. disabling a ListView's scrolling feature).
Diolor
  • 13,181
  • 30
  • 111
  • 179
0
votes
1 answer

GridView with variable width items

I need to achieve a behavior like the last.fm tag cloud on Android. This means: my items have android:layout_width="wrap_content", and I need to display horizontally until an item doesn't fit horizontally on the View, which will be the first item of…
Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90
0
votes
3 answers

How can I make this ContextMenu Items clickable and add action to items?

I get some information from a database and I created an ArrayAdapter for show this information. If I click on an item a menu appears with four possible action. But I don't know how can I add action listener for this menu items. MySQLiteHelper…
user3190360
  • 151
  • 1
  • 2
  • 7
0
votes
2 answers

AdapterView.OnItemClickListener() not working

How to make AdapterView.OnItemClickListener() work, when ... activity implements View.OnLongClickListener, View.OnClickListener, DragDropPresenter, View.OnTouchListener { ... } and I there is public void onClick(View v) { // TODO Auto-generated…
0
votes
0 answers

Bitmap resulting null even for particular path

I'm working on getting image from the camera and gallery. I'm trying to get the bitmap of the image to reduce the size of the image. But the bitmapfactory is null when I tried debugging the process. I'm not understanding why it is so even for…
user2955143
  • 177
  • 4
  • 12
0
votes
1 answer

AdapterView (TwoWayView) margin of item

I'm using the TwoWayView library : https://github.com/lucasr/twoway-view to try and implement a horizontal ListView of sorts to overhaul what I had before. (HorizontalScrollView with a horizontally oriented LinearLayout that I add views to) I want…
0
votes
3 answers

Android ListView Duplicates entries

If i type "Hello" in my edittext in activity 1 it will add "Hello" to the listview in activity 2 as the first entry ( which has no error ). Also, if I type "Apple" as my second entry I will change the first entry of "Hello" to "Apple" and add the…
0
votes
1 answer

Fragments, ListView and Custom Adapters

I'm a newbie on android and I'm creating an application. The application layout is configured with Swipe Views. One of this fragments have a ListView with history of completed actions. When a user clicks on a button, the application pick some data…
0
votes
0 answers

Custom TableView with data binding adapter in android

I want to achieve this layout. Table can have different number of rows, but once this number is set, it wouldn't change. Also, there is no need for scroll. Well... I could do this with simple TableLayout, but it doesn't support data binding. So I'm…
user1685095
  • 5,787
  • 9
  • 51
  • 100
0
votes
0 answers

ListView item activated lost in orientation change

I'm using two different views in a fragment that contain a ListView. These ListViews use the same ListAdapter. In landscape, I show the listview in the fragment and in portrait, there is a button that shows a dialog containing the listview. My…