Here's a little more detail from layout-land (fails) and layout (works) respectivley. The fist button causes a runtime exception in findViewById, the second works:
FAILS <Button android:layout_height="wrap_content" android:id="@+id/ ViewEvents" android:text="View Events" android:layout_width="wrap_content" android:layout_gravity="center"></ Button> WORKS <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/ViewEvents" android:text="View Events"></Button> -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en