activity_main.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. tools:context="${relativePackage}.${activityClass}" >
  6. <TextView
  7. android:id="@+id/textView2"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:text="@string/highScore" />
  11. <TextView
  12. android:id="@+id/highScoreTv"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_alignParentTop="true"
  16. android:layout_marginLeft="14dp"
  17. android:layout_toRightOf="@+id/textView2"
  18. android:text="@string/initialHighScore" />
  19. <TextView
  20. android:id="@+id/currentScoreTv"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_centerHorizontal="true"
  24. android:layout_centerVertical="true"
  25. android:text="@string/initialHighScore"
  26. android:textSize="36sp" />
  27. <Button
  28. android:id="@+id/resetBtn"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_alignParentBottom="true"
  32. android:layout_alignParentLeft="true"
  33. android:layout_alignParentRight="true"
  34. android:text="@string/reset" />
  35. <Button
  36. android:id="@+id/playBtn"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_above="@+id/resetBtn"
  40. android:layout_alignParentLeft="true"
  41. android:layout_alignParentRight="true"
  42. android:text="@string/play" />
  43. </RelativeLayout>