Hi All,
I want to show some students information i.e. id, name,
address and contact number in listview. Which Adapter should i use
here i.e, ArrayAdapter or BaseAdapter. What's the major difference
between them.
Thanks and Regards,
S.Seshu.
--
--
You received this message because you
http://www.catb.org/esr/faqs/smart-questions.html#before
should know this .
Thanks Regards,
Parthiban.k
Software Engineer
Mode FinServer Pvt. Ltd.
Cell: +7204205850
Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k
@modefinserver.com shoai...@modefinserver.com
On Fri, Mar
Directly modifying an adapter's data (especially changing the number of
items) from a background thread is a recipe for disaster.
The data can be loaded on a thread, but should be switched in the adapter
on the UI thread, followed by a call to notifyDatasetChanged, also on the
UI thread.
-- K
On Sun, Jan 27, 2013 at 7:36 PM, dashman erjdri...@gmail.com wrote:
You can modify the ArrayList directly from a background thread.
How can i do that - i don't see any api for this.
java.util.ArrayList has been around for, what, 15 years? Yes, it has
an API to allow the list to be modified.
Can an ArrayAdapter (holding data for a ListView) be modified
in a background thread.
I'd like to modify the array and then call
adapter.notifyDataSetChangedhttp://developer.android.com/reference/android/widget/ArrayAdapter.html#notifyDataSetChanged%28%29
()
--
--
You received this
On Sun, Jan 27, 2013 at 5:26 PM, dashman erjdri...@gmail.com wrote:
Can an ArrayAdapter (holding data for a ListView) be modified
in a background thread.
I'd like to modify the array and then call
On Sun, Jan 27, 2013 at 6:26 PM, dashman erjdri...@gmail.com wrote:
Can an ArrayAdapter (holding data for a ListView) be modified
in a background thread.
I'd like to modify the array and then call
adapter.notifyDataSetChanged()
You cannot modify the *adapter* in a background thread if it is
mark,
You can modify the ArrayList directly from a background thread.
How can i do that - i don't see any api for this.
--
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
nevermind - i decided to subl-class BaseAdapter
Thanks.
On Sunday, January 27, 2013 7:36:06 PM UTC-5, dashman wrote:
mark,
You can modify the ArrayList directly from a background thread.
How can i do that - i don't see any api for this.
--
--
You received this message because you
I'm looking at the docs for ArrayAdapter. It says this:
To use something other than TextViews for the array display, for instance,
ImageViews, or to have some of data besides toString() results fill the
views, override getView(int, View, ViewGroup) to return the type of view
you want.
So, I
On Aug 13, 2012, at 9:12 PM, bob b...@coolfone.comze.com wrote:
So, I guess you don't have to use a text view? Then why do all the
constructors take a textViewResourceId? What should I pass in for that if
I'm not really going to use a text view?
If you're lucky it's only getView(…) that
If I have ListView that doesn't use a TextView then I usually just subclass
BaseAdapter... It is a little more work but it gives me complete control.
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Mon, Aug 13, 2012 at 12:26 PM, Harri Smått
I am not facing any thing just I want steps to do it
becauase I am beginer in android and java
http://catb.org/esr/faqs/smart-questions.html
I read alot but there is no example help me to do it
There are plenty of examples out there. Take it in steps, and actually do
some critical
Hello,
I have qestion about arrayadapter i want to creat a list veiw and i want
this list update it every minute by add new item and delet one item
By using arrayadapter and send massege to the handler
How can I do this part of code?
Best Regards!
Sahar
--
You received this message because you
What have you done so far? What specific problem are you facing?
Thanks
On Sun, Apr 8, 2012 at 3:32 PM, sahar aseeri saharase...@gmail.com wrote:
Hello,
I have qestion about arrayadapter i want to creat a list veiw and i want
this list update it every minute by add new item and delet one
You outlined the steps you wanted in the first email. You have the steps
then, just code it. No one is going to hand out code to you, unless you pay
them.
Google can help you find hundreds on tutorials on this subject.
Thanks
2012/4/8 sahar aseeri saharase...@gmail.com
I am not facing any
notifyDatasetChanged() on adapter
2012/4/8 sahar aseeri saharase...@gmail.com
I am not facing any thing just I want steps to do it
becauase I am beginer in android and java
I read alot but there is no example help me to do it
thanks
بتاريخ 08 أبريل, 2012 01:11 م، جاء من Raghav Sood
yes I know, I will do this code by my self but I what some one tell me what
is the steps or if the steps that I wrote was correct or not
because I searched in google and I didn't fine example like I want.
بتاريخ 08 أبريل, 2012 04:52 م، جاء من Raghav Sood
raghavs...@androidactivist.org:
You
I am using ArrayAdapter and AdapterView in one activity. Meaning, my base
view is a gridview which uses BaseAdapter. i implement
AdapterView.OnClickListener onClick method for knowing grid item selection.
on grid item selection i show a dialog with listarrayadapter.
now i need to have a
OnView !!
On Tue, Mar 13, 2012 at 6:08 PM, Jags jag...@gmail.com wrote:
I am using ArrayAdapter and AdapterView in one activity. Meaning, my base
view is a gridview which uses BaseAdapter. i implement
AdapterView.OnClickListener onClick method for knowing grid item selection.
on grid item
Hi,
I have an app with multiple tabs, each with its own ListActivity,
let's call them SubActivities. The MainActivity that houses the
SubActivities creates a list, and the SubActivities display a subset
of the list based on some parameters. I'm currently implementing this
with separate adapters
Thanks, but as I said, I tried that, and it didn't help. And you shouldn't
have to do that anyway -- according to the API
documentationhttp://developer.android.com/reference/android/widget/ArrayAdapter.html#setNotifyOnChange(boolean),
notification is meant to happen automatically when you're
Are their known issues with ArrayAdapters not updating their corresponding
ListViews, even when you're just using the standard add(), remove(),
insert() methods that are supposed to update them automatically?
In my activity I'm declaring:
public class ShoppingListAdapter extends
I am using a custom array adapter in my ListView. It works fine when
I am scrolling through a list of items slowly but when I attempt to
scroll quickly the activity get's closed by the memory manager.
Has anyone else run into this ?
--
You received this message because you are subscribed to
I am about to give a class on Android, I am wondering if the ArrayAdapter is
correctly used in the context of design patterns. Should it be ArrayStrategy
instead ?
Please share your thoughts
Siddharth
--
You received this message because you are subscribed to the Google
Groups Android
On Fri, Feb 12, 2010 at 11:32 PM, MCON Dev mcon...@gmail.com wrote:
Should it be ArrayStrategy instead ?
Why?
-
TreKing - Chicago transit tracking app for Android-powered devices
Hi Marc and Streets of Boston,
Thanks for the tips!
As it turns out, subclassing is not necessary.
The ArrayAdapter also works with java.util.List. I only found out
while reading the source code (from the AOSP tree) to see how I can
make a fork of it.
Then, insert(object, index) will insert
Hi,
i have wraped ArrayAdapter of a a single editText in a ListView
(notepad example)
ListView MsgListView = (ListView)findViewById(R.id.MsgListView);
Button addimage = (Button) findViewById(R.id.addimage);
final EditText EditMsgText = (EditText)findViewById(R.id.EditMsgText);
final
I am querying the database and adding the results to a list.
everything works fine until i set the adapter (setAdapter) on my
spinner control. I get the error the application has stopped
unexpectadely. can anyone tell me what Im doing wrong?
ListString results = new
How does the ArrayAdapter know when the array has been modified? I am
using my own adapter, and I want to add items as they come in while
asynchronously updating the ListView displaying them.
--~--~-~--~~~---~--~~
You received this message because you are
30 matches
Mail list logo