activity_display.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/activity_example_rtmp"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. >
  7. <SurfaceView
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:id="@+id/surfaceView"
  11. />
  12. <EditText
  13. android:textColor="@color/appColor"
  14. android:textColorHint="@color/appColor"
  15. android:inputType="textUri"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:gravity="center"
  19. android:layout_margin="20dp"
  20. android:id="@+id/et_rtp_url"
  21. />
  22. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:orientation="horizontal"
  26. android:layout_alignParentBottom="true"
  27. android:layout_margin="20dp"
  28. android:gravity="center"
  29. >
  30. <Button
  31. android:text="@string/start_button"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:id="@+id/b_start_stop"
  35. />
  36. </LinearLayout>
  37. </RelativeLayout>