Re: [android-developers] ListFragment fails on setContentView

2012-03-19 Thread Mark Murphy
On Sun, Mar 18, 2012 at 9:25 PM, Jim Andresakis jimandresa...@gmail.com wrote: Hey thanks for jumping in Mark. So no matter what subclass of fragment Im using I always call it from xml using just fragment ? Yes, with a class attribute identifying the implementation. -- Mark Murphy (a Commons

Re: [android-developers] ListFragment fails on setContentView

2012-03-19 Thread Daniel Hoeggi
If you have a seperate layout.xml for your listfragment, then maybe you are missing @android:id/list as id for your listview? On Mon, Mar 19, 2012 at 11:12 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Mar 18, 2012 at 9:25 PM, Jim Andresakis jimandresa...@gmail.com wrote: Hey thanks

Re: [android-developers] ListFragment fails on setContentView

2012-03-19 Thread Jim Andresakis
Yeah I had it that way at one point but I switched it based on some examples I saw online. I think at this point it'd be better for me to start over because Im so confused with my code the way it is. That way I can just start with one example somewhere. If you guys know of a great simple

Re: [android-developers] ListFragment fails on setContentView

2012-03-19 Thread Mark Murphy
On Mon, Mar 19, 2012 at 6:58 PM, Jim Andresakis jimandresa...@gmail.com wrote: Yeah I had it that way at one point but I switched it based on some examples I saw online. I think at this point it'd be better for me to start over because Im so confused with my code the way it is. That way I can

[android-developers] ListFragment fails on setContentView

2012-03-18 Thread Jim Andresakis
Ive been trying to get a listview working within a fragment all day. I dont know why but for some reason the way Im trying to do it, it just never wants to inflate the view. Im using actionbarsherlock if that makes a difference but I dont think so. Heres the class where my layout fails:

Re: [android-developers] ListFragment fails on setContentView

2012-03-18 Thread Mark Murphy
ListFragment is not a valid element. That says hey, go find android.view.ListFragment and use it here, and there is no such class. You add fragments to a layout via fragment: http://developer.android.com/guide/topics/fundamentals/fragments.html#Adding On Sun, Mar 18, 2012 at 7:29 AM, Jim

Re: [android-developers] ListFragment fails on setContentView

2012-03-18 Thread Ralph Bergmann | the4thFloor.eu
Am 18.03.12 12:29, schrieb Jim Andresakis: and heres the layout were I call my fragment. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=match_parent

Re: [android-developers] ListFragment fails on setContentView

2012-03-18 Thread Jim Andresakis
Hey thanks for jumping in Mark. So no matter what subclass of fragment Im using I always call it from xml using just fragment ? I switched my code up using that but now I get an error in my logcat complaining about a resource exception resource not found on my listview. On Sunday, March 18,