activity_main.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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/doingWhat"
  8. android:layout_width="wrap_content"
  9. android:layout_height="wrap_content"
  10. android:layout_centerHorizontal="true"
  11. android:layout_centerVertical="true" />
  12. <ToggleButton
  13. android:id="@+id/audioPlaying"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:layout_alignParentBottom="true"
  17. android:layout_alignParentLeft="true"
  18. android:layout_alignParentRight="true"
  19. android:textOn="@string/stopPlaying"
  20. android:textOff="@string/startPlaying" />
  21. <ToggleButton
  22. android:id="@+id/audioRecording"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_above="@+id/audioPlaying"
  26. android:layout_alignParentLeft="true"
  27. android:layout_alignParentRight="true"
  28. android:textOn="@string/stopRecording"
  29. android:textOff="@string/startRecording" />
  30. </RelativeLayout>