I'm planning on creating a game, but am a bit new to 2D graphics in Android. I get the error in the subject and I can't decipher why.
I have a relative view with a slider handle and a GameView class that just extends View. The GameView class doesn't do anything yet, just defines a constructor that calls to the super class. This error occurs as soon as I open the activity with this layout. It worked immediately prior to adding the GameView to the layout. Here's the layout xml: Thanks for any help! Code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rootLayoutGame" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <GameView android:id="@+id/gameView" android:layout_width="fill_parent" android:layout_height="fill_parent" > </GameView> <SlidingDrawer android:id="@+id/gameSlidingDrawer" android:layout_width="match_parent" android:layout_height="90dp" android:layout_alignParentBottom="true" android:allowSingleTap="@bool/single_tap" android:animateOnClick="@bool/single_tap" android:orientation="vertical" android:content="@+id/towersLinearLayout" android:handle="@+id/handle" android:scrollbarAlwaysDrawVerticalTrack="false" > <ImageButton android:id="@+id/handle" style="@style/HandleTheme" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/towersLinearLayout" android:layout_gravity="bottom" android:layout_width="match_parent" android:layout_height="45dp" android:orientation="horizontal" > <ImageButton android:id="@+id/tower1" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower2" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower3" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower4" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower5" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower6" style="@style/HandleTheme" /> <ImageButton android:id="@+id/tower7" style="@style/HandleTheme" /> </LinearLayout> </SlidingDrawer> </RelativeLayout> -- 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