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"
>     android:orientation="vertical" 
>     >
>    
>   
>     <ListFragment
>         android:id="@+id/searchfrag"
>         android:layout_width="0dip"
>         android:layout_height="match_parent"
>         android:name="graffit.main.SearchListFrag"
>         android:layout_weight="1"></ListFragment>
>     
>     
> 
>     </LinearLayout>
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{graffit.main/graffit.main.GraffSearch}:
> android.view.InflateException: Binary XML file line #9: Error inflating
> class ListFragment

"ListFragment" is not a subclass of View so it can't inflated.

You have to use "ListView" in your layout xml file.


http://android-developers.blogspot.de/2011/02/android-30-fragments-api.html

http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentListArraySupport.html



Ralph

-- 
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 email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to