Confused when to use Adapters and which one?

I have read a little bit about ListAdapter - ArrayAdapter - BaseAdapter - CursorAdapter. I don’t understand there usage in true sense.

I have scenario, in which I am showing word in a TextView and then there are 4 radio button options and user will select one.

I am confused if I can use any adapter functionality. Like when the word on the top is move to next word. Meaning selection shown as radio button options updates automatically because of binding.

In a nut shell i am looking for something like auto binding in .NET.

-------------Problems Reply------------

ArrayAdapter can be used to link say a list of items with an array. The ArrayAdapter works between an your array data and a list item layout to populate a list.

a CursorAdapter can work in a similar way but can link a database query result set (in a cursor) to a list by populating list items.

They are both subclasses of ListAdapter

If data changes in either the database tables or Array both the Array and Cursor Adapters can be refreshed via notifyDataSetChanged()

BaseAdapter is the most basic Adapter of ListView. All remaining adapters extend from BaseAdapter.

If you are confused which adapter is suitable for you scenario, let choose BaseAdapter first.

Category:android Views:2 Time:2011-04-18
Tags: android

Related post

  • Confused on TDD wrappers/adapters 2010-09-27

    I'm new to the TDD scene and trying to isolate my tests is having me go around in circles. I have an app I am trying to write that uses OpenXML so it has a mass of objects that it depends on to work from an external framework. I thought it would be a

  • Confusion with ListView adapters 2011-12-09

    I'm having some trouble understanding how to get my ListView to update. When a user clicks on a list item, the item is deleted fromt he database and the ListView should update to show it no longer there. However, the list does not update and I'm not

  • Confused about IAdaptable with IActionFilters 2010-02-14

    I'm confuse about IAdaptable and related classes. Which class is the adapter, the adaptee, the adaptable type? [Context] I have a context menu for entries of a table/tree viewer. Certain actions in the context menu must not be visible depending on th

  • Should I be using table adapters? 2010-06-24

    I am working on a personal project as a way of learning more about C# and .NET, specifically creating an application that utilises a database (MS SQL Server 2008 in my case). Whilst I appreciate there isn't always a definitive "right" way of doing th

  • Confused between SqlCommand & SqlDataAdapter 2011-10-15

    everyone I am a student and new to .NET and specially MVC3 development but for one of my project I’ve to work over it and so going through the learning phase Issue and confusion I am facing is regarding DB-Connectivity, whast I leanree d regarding re

  • 2 network adapters showing up in Windows 8, causing problems 2013-05-14

    Hi, I'm running Windows 8 Pro 64 bit on a machine I built myself. The machine contains an Asus Maximus IV Gene-Z/Gen3 MOBO with built-in gigabit ethernet. This machine was previously running Windows 7 Professional 64 bit with no issues. Here's the is

  • USB Wireless Network Adapters don't work with my desktop PC 2012-07-25

    After experiencing multiple issues with bad connections etc with my internet, I assumed that a drop in connection to my desktop PC was down to the router/ISP etc. When trying to connect to my home network, Windows would constantly give me messages sa

  • Confusing Network connection problems in Windows 7 2012-11-10

    Hi I have just this week got a new computer whch runs Windows 7 as opposed to XP on my old system. I am using the router that I used with my old system and when I set it up first time it worked perfectly, recognising the network and accepting my secu

  • When will the many failures of Windows 7 64x to work with wireless adapters be fixed by bringing Windows 7 into January/2010 802.11n Finalized Protocol Standards compliance through Windows Update? 2012-12-21

    The worst of the problems seems to be that the fact that for wireless adapters, “Windows couldn't automatically bind the IP protocol stack to the network adapter”. In English, this means that Microsoft, among other things, has messed up the interface

  • I have 117 Tunnel adapters showing in ipconfig, do I really need all of these? 2013-07-29

    I'm trying to troubleshoot my wireless adapter, which is often putting itself on the wrong subnet and therefor not connecting to my router, but 117 additional adapters makes IPConfig painful and confusing. I do use the homegroup so I don't want to di

  • Am CRAZY Trying To RESET/Fix BOTH BLUETOOTH ADAPTERS, Which Remain "DISCONNECTED"... 2014-02-12

    Hi... BOTH Bluetooth Adapters REFUSE to CONNECT... HAVE DONE EVERYTHING A BILLION TIMES... NOTHING IS WORKING... Not Sure If I should TRY UNINSTALLING & REINSTALLING {Disabling & REENABLING- or-"RESET" JUST NOT WORKING}!!! WHAT ELSE CAN I DO?

  • Windows 7 Wireless Connection Confusion 2014-10-16

    Hi there I have recently got a Dell Precision M4400 laptop for work and, llike so many others it seems, am having problems with my wireless connection. If I connect an ethernet cable to my machine I have no internet connection problems. However, with

  • Why does my 3 adapters in network file go to code 10 ? 2014-12-27

    How do I uninstall and reinstall? It does not work by previous comments When my computer freezes up and then I find that the 3 (Teredo tunneling, ISATAP , 6to4 adapters) are on code 10 --------------Solutions------------- Hi James, Thank you for post

  • Solved: 2 Display Adapters 2014-12-30

    I have an Intel(R) HD Graphics 4600 & a Nvidia GeForce GTX 760. In the dxdiag it does show Nvidia so I assume it is the primary and will be used for tough tasks like games and the like. My question is can the computer be having issues or strains

  • Are There Adapters for CF Type II to MicroSD? 2008-09-03

    I honestly have only started recently researching this so my knowledge is limited. I was approached about adapting some Pocket PC software to operate on the Windows 6 platform. After considering how I would go about doing that in the Compact Framewor

  • Confusing return statement 2008-10-03

    I'm failing to understand exactly what the IF statement is doing, from what I can see it is checking if the variable x is equal to the int 0. If this is true the ABSOLUTE value of the variable y is returned... this is when I lose the plot, why would

  • Is there a simple algorithm that can determine if X is prime, and not confuse a mere mortal programmer? 2008-10-09

    I have been trying to work my way through Project Euler, and have noticed a handful of problems ask for you to determine a prime number as part of it. 1) I know I can just divide x by 2, 3, 4, 5, ..., square root of X and if I get to the square root,

  • Python Webframework Confusion 2008-10-10

    Could someone please explain to me how the current python webframworks fit together? The three I've heard of are CherryPy, TurboGears and Pylons. However I'm confused because TurboGears seems to use CherryPy as the 'Controller' (although isn't Cherry

  • C++: Get MAC address of network adapters on Vista? 2008-10-21

    We are currently using the NetBios method, and it works ok under XP. Preliminary tests under Vista show that it also works, but there are caveats - NetBIOS has to be present, for instance, and from what I've been reading, the order of the adapters is

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.084 (s). 11 q(s)