Posted By

on 03/29/10


Tagged


Versions (?)

Sudoku (res/layout-land/main.xml)


 / Published in: XML
 

from "Hello Android 2nd Edition" (ISBN: 1-934356-49-2)

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:background="@color/background"
  5. android:layout_height="fill_parent"
  6. android:layout_width="fill_parent"
  7. android:padding="15dip"
  8. android:orientation="horizontal" >
  9. <LinearLayout
  10. android:orientation="vertical"
  11. android:layout_height="wrap_content"
  12. android:layout_width="fill_parent"
  13. android:layout_gravity="center"
  14. android:paddingLeft="20dip"
  15. android:paddingRight="20dip" >
  16. <TextView
  17. android:text="@string/main_title"
  18. android:layout_height="wrap_content"
  19. android:layout_width="wrap_content"
  20. android:layout_gravity="center"
  21. android:layout_marginBottom="20dip"
  22. android:textSize="24.5sp" />
  23. <TableLayout
  24. android:layout_height="wrap_content"
  25. android:layout_width="wrap_content"
  26. android:layout_gravity="center"
  27. android:stretchColumns="*" >
  28. <TableRow>
  29. <Button
  30. android:id="@+id/continue_button"
  31. android:text="@string/continue_label" />
  32. <Button
  33. android:id="@+id/new_button"
  34. android:text="@string/new_game_label" />
  35. </TableRow>
  36. <TableRow>
  37. <Button
  38. android:id="@+id/about_button"
  39. android:text="@string/about_label" />
  40. <Button
  41. android:id="@+id/exit_button"
  42. android:text="@string/exit_label" />
  43. </TableRow>
  44. </TableLayout>
  45. </LinearLayout>
  46. </LinearLayout>

Report this snippet  

You need to login to post a comment.