On Sep 6, 2012, at 4:03 PM, ghuoof <[email protected]> wrote: > I'm having a similar problem and I'm completely stumped. At this point I am > just trying to do some very simple stuff with fragments.
The problem is a type name mismatch; your fragment uses the class `com.goctsi.com.oti.eventslistfragment` (note the //fragment/@android:name attribute): > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical" > > > <fragment > android:name="com.goctsi.com.oti.eventslistfragment" > android:id ="@+id/eventslistfragment" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > /> > > </LinearLayout> However your actual class name is `CTSi_Noti.eventslistfragment`: > namespace CTSi_Noti > { > public class eventslistfragment : Fragment `com.goctsi.com.oti.eventslistfragment` != `CTSi_Noti.eventslistfragment`, so that's why it fails. > my package name is set to "com.goctsi.com.oti" so the fragment should be > "com.goctsi.com.oti.eventslistfragment" right? No, the package name you set is the "package name" for the app. The package name for individual types within the app comes from the type's namespace, so a C# type of "CTSi_Noti.eventslistfragment" will create the Java ACW of "ctsi_noti.eventslistfragment" (lowercasing the namespace name to create the package name). - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
