Questions tagged [simpleadapter]

SimpleAdapter is a basic Android adapter which can be used to map static data to views in a xml layout.

A SimpleAdapter expects that the data supplied to be in the form of a List of Maps, where each Map represents the data for one row. The SimpleAdapter is a limited adapter by default, it will only bind data to an ImageView or TextView, for any other views the user must either use a ViewBinder or override the adapter's default behavior. More can be found in the documentation of the SimpleAdapter.

335 questions
-2
votes
1 answer

Create ArrayAdapter from SimpleAdapter

I created a simpleadapter with an HashMap to retrieve json datas. It works but i would create an ArrayAdapter instead. This is the simple adapter with json parsing: @Override protected void onPostExecute(JSONObject json) { …
Atlas91
  • 5,754
  • 17
  • 69
  • 141
-2
votes
1 answer

android + custom list view

i am trying to make a custom list view and was following this post http://saigeethamn.blogspot.in/2010/04/custom-listview-android-developer.html the list view accepted the custom row.. but only displays the first item... none of the rest.. so what…
Alvin
  • 416
  • 1
  • 8
  • 18
-2
votes
3 answers

Listview shows old and new content after updating

In my application, listview is loaded from SQLite database and it is using SimpleAdapter to set ListView. When user perform longclick on listitem, that item will be deleted from database and it should update listviw. But when i remove item from…
Zankhna
  • 4,570
  • 9
  • 62
  • 103
-3
votes
1 answer

Android Can't set image in a ListView layout

Looks like find the image but i don't know how to insert into the simple adapter (or anything that let me set the image in my layout) https://gyazo.com/61ab064c19ae50090f08e6436776a52e I want to set an image for each object in the array,…
Tatsuya
  • 352
  • 4
  • 18
-3
votes
2 answers

Displaying Content in ListView

Creating a simple registration form and storing the values in database. The data stored should be displayed on Home page after user finishes registration. On home page, I created a ListView in which on a row I want to show username given by user…
Saggy
  • 624
  • 8
  • 23
1 2 3
22
23