[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread purvi
Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked for me. Regards, Purvi On Sep 27, 4:00 pm, Wouter wouterg...@gmail.com wrote: But I declare it there and then in my

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
Could it be that simple? Gonna try it immediatelly! Thank you! On 7 okt, 16:18, purvi purvi.n...@gmail.com wrote: Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
Hmm all the @overrides were gone.. :s On 7 okt, 16:18, purvi purvi.n...@gmail.com wrote: Hi, I had the same problem, it was gone when i removed all the @override lines above the functions of the SeparateListAdapter. So try not overriding the functions. It worked for me. Regards, Purvi

[android-developers] Re: You must supply a resource ID for a TextView

2009-10-07 Thread Wouter
How can i solve this please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Wouter
On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override #     public void onCreate(Bundle icicle) { #        

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Marco Nelissen
On Sun, Sep 27, 2009 at 6:01 AM, Wouter wouterg...@gmail.com wrote: On 26 sep, 19:10, Marco Nelissen marc...@android.com wrote: On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override #    

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Wouter
Ok i will try to explain how i generate my headers with the seperatedlistadapter.. private SeparatedListAdapter adapter; in my setupViews functions: this.adapter = new SeparatedListAdapter(this); setListAdapter(adapter); And then to retrieve my data: @SuppressWarnings(unchecked)

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Marco Nelissen
I don't see anything obviously wrong with your code. I do notice that you apparently create the SeparatedListAdapter and then immediately call setListAdapter with it, whereas the SeparatedListAdapter sample code creates the adapter, then adds a bunch of sections to it, and then calls

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-27 Thread Wouter
But I declare it there and then in my runnable i do adapter.notifyDatasetChanged so the listview knows there is other data to show. This works for other adapters.. Really don't know why this isn't working. My listview with headers works, i can see the first header or sometimes more but when i

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-26 Thread Marco Nelissen
On Sat, Sep 26, 2009 at 6:20 AM, Wouter wouterg...@gmail.com wrote: When i look at the sample from the seperatedlistadapter i see this: # @Override #     public void onCreate(Bundle icicle) { #         super.onCreate(icicle); # #         ListMapString,? security = new

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-26 Thread Wouter
When i look at the sample from the seperatedlistadapter i see this: # @Override # public void onCreate(Bundle icicle) { # super.onCreate(icicle); # # ListMapString,? security = new LinkedListMapString,? (); # security.add(createItem(Remember passwords, Save usernames

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Wouter
Np the headers are using a separate layout file.. On 25 sep, 00:04, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 2:12 PM, Wouter wouterg...@gmail.com wrote: On 24 sep, 22:53, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 1:41 PM, Wouter

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Marco Nelissen
So there's your problem then, probably. The adapter expects each item to have the same items, so that it can assign the fields from your Cursor to the corresponding items in your list item layout. In other words, if your normal list item contains items with IDs A, B and C, them your section list

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Wouter
On 25 sep, 16:57, Marco Nelissen marc...@android.com wrote: So there's your problem then, probably. The adapter expects each item to have the same items, so that it can assign the fields from your Cursor to the corresponding items in your list item layout. In other words, if your normal list

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-25 Thread Marco Nelissen
On Fri, Sep 25, 2009 at 10:18 AM, Wouter wouterg...@gmail.com wrote: On 25 sep, 16:57, Marco Nelissen marc...@android.com wrote: So there's your problem then, probably. The adapter expects each item to have the same items, so that it can assign the fields from your Cursor to the

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Wouter
Can someone help me please! Really need to get this fixed! On Sep 19, 3:10 pm, Wouter wouterg...@gmail.com wrote: Do you know a solution? On 18 sep, 19:00, Wouter wouterg...@gmail.com wrote: This is the function: public View getView(int position, View convertView, ViewGroup parent) {

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
Somewhere in your code, you are passing a resource ID to the system that should refer to a TextView, but doesn't. My guess is you've set your data mapping up incorrectly. On Thu, Sep 24, 2009 at 1:25 PM, Wouter wouterg...@gmail.com wrote: Can someone help me please! Really need to get this

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Wouter
I have no problem with the data mapping and TextViews. It fully works when i don't use a seperatedList adapter.. So there is problem with this seperatedListAdapter.. Is there another way i can use to divide my list in sections with headers? On 24 sep, 22:36, Marco Nelissen marc...@android.com

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data mapping and TextViews. The stack trace and crash you're seeing indicate otherwise. Unless you're doing something specific in bindView, the adapter expects each list item layout to be the same.

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Wouter
On 24 sep, 22:53, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data mapping and TextViews. The stack trace and crash you're seeing indicate otherwise. Unless you're doing something specific in

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-24 Thread Marco Nelissen
On Thu, Sep 24, 2009 at 2:12 PM, Wouter wouterg...@gmail.com wrote: On 24 sep, 22:53, Marco Nelissen marc...@android.com wrote: On Thu, Sep 24, 2009 at 1:41 PM, Wouter wouterg...@gmail.com wrote: I have no problem with the data mapping and TextViews. The stack trace and crash you're

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-19 Thread Wouter
Do you know a solution? On 18 sep, 19:00, Wouter wouterg...@gmail.com wrote: This is the function: public View getView(int position, View convertView, ViewGroup parent) {                 int sectionnum = 0;                 for(Object section : this.sections.keySet()) {                    

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-18 Thread Wouter
Really dont find what the problem is, the weird is it worked and i havent changed anything :( On 18 sep, 12:02, Wouter wouterg...@gmail.com wrote: Hey, I have a weird problem. For days i have a working list with movie details i get from an xml rpc source. It loads the list very well and I

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-18 Thread Wouter
I removed my seperatedlistadapter and now it worked.. :s But it was working before with my seperatedlistadapter :( On 18 sep, 14:47, Wouter wouterg...@gmail.com wrote: Really dont find what the problem is, the weird is it worked and i havent changed anything :( On 18 sep, 12:02, Wouter

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-18 Thread Yusuf Saib (T-Mobile USA)
Where in your code is SeparatedListAdapter.java:93? And can you post the resource xml as well? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-18 Thread Wouter
This is the function: public View getView(int position, View convertView, ViewGroup parent) { int sectionnum = 0; for(Object section : this.sections.keySet()) { Adapter adapter = sections.get(section); int size =