[android-developers] Re: ListView throws Exception

2008-04-12 Thread Dan U.
The message is a bit vague I guess. The way I read it was that it couldn't find an xml file with that id. That would likely be in reference to an xml in res/layout. I don't know where you see anything mentioned in the API. The docs are empty for createFromResource in my local m5-rc14 copy. The onl

[android-developers] Re: ListView throws Exception

2008-04-11 Thread pyf
Yes, it's working. You mean the way I used is not correct? but that's what mentioned in API. From exception, it seems it could not find android.R.id.list. On Apr 12, 1:17 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > You are extending ListActivity right? Maybe you could try using > android.R.layout.s

[android-developers] Re: ListView throws Exception

2008-04-11 Thread Dan U.
You are extending ListActivity right? Maybe you could try using android.R.layout.simple_list_item_1 in your createFromResource call instead of android.R.id.list. On Apr 11, 8:37 pm, pyf <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to customize layout by having ListView in it. > This is my code