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.
Here's the code for my activity (Activity3):
namespace CTSi_Noti
{
[Activity(ScreenOrientation = ScreenOrientation.Landscape,
WindowSoftInputMode = SoftInput.AdjustPan)]
public class Activity3 : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
RequestWindowFeature(WindowFeatures.ActionBar);
SetContentView(Resource.Layout.Summary);
}
}
}
and its layout file (Summary.xml):
<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>
here's the fragment it contains:
namespace CTSi_Noti
{
public class eventslistfragment : Fragment
{
public override View OnCreateView(LayoutInflater inflater, ViewGroup
container, Bundle savedInstanceState)
{
View view = inflater.Inflate(Resource.Layout.eventslistfragment,
container, false);
return view;
}
}
}
and its layout (eventslistfragment.xml):
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView android:id="@+id/text1"
android:textSize="16sp"
android:textStyle="bold"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="seriously?" />
</LinearLayout>
I keep getting this error:
android.view.InflateException: Binary XML file line #1: Error inflating
class fragment
my package name is set to "com.goctsi.com.oti" so the fragment should be
"com.goctsi.com.oti.eventslistfragment" right?
thanks in advance.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/inflate-exception-tp4999822p5711724.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid