activity_custom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:openDrawer="start"
  8. android:id="@+id/activity_custom"
  9. >
  10. <RelativeLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. >
  14. <SurfaceView
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:id="@+id/surfaceView"
  18. />
  19. <EditText
  20. android:textColor="@color/appColor"
  21. android:textColorHint="@color/appColor"
  22. android:inputType="textUri"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:gravity="center"
  26. android:layout_margin="20dp"
  27. android:id="@+id/et_rtp_url"
  28. />
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:orientation="horizontal"
  33. android:layout_alignParentBottom="true"
  34. android:layout_margin="20dp"
  35. android:gravity="center"
  36. >
  37. <Button
  38. android:text="@string/start_record"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_marginRight="5dp"
  42. android:id="@+id/b_record"
  43. />
  44. <Button
  45. android:text="@string/start_button"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginRight="5dp"
  49. android:id="@+id/b_start_stop"
  50. />
  51. <Button
  52. android:text="@string/switch_camera_button"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:id="@+id/switch_camera"
  56. />
  57. </LinearLayout>
  58. <TextView
  59. android:textColor="@color/appColor"
  60. android:id="@+id/tv_bitrate"
  61. android:layout_alignParentEnd="true"
  62. android:layout_alignParentRight="true"
  63. android:layout_below="@+id/et_rtp_url"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_margin="20dp"
  67. />
  68. </RelativeLayout>
  69. <com.google.android.material.navigation.NavigationView
  70. android:layout_width="wrap_content"
  71. android:layout_height="match_parent"
  72. android:layout_gravity="start"
  73. android:paddingBottom="30dp"
  74. android:fitsSystemWindows="true"
  75. app:headerLayout="@xml/options_header"
  76. android:id="@+id/nv_rtp"
  77. >
  78. </com.google.android.material.navigation.NavigationView>
  79. </androidx.drawerlayout.widget.DrawerLayout>