video_session.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/video_session"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent" >
  6. <SurfaceView
  7. android:id="@+id/surface_remote"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_gravity="center" />
  11. <ProgressBar
  12. android:id="@+id/progress_remote"
  13. style="@android:style/Widget.ProgressBar.Horizontal"
  14. android:layout_width="match_parent"
  15. android:layout_height="5dip"
  16. android:layout_gravity="bottom"
  17. android:max="100" />
  18. <LinearLayout
  19. android:id="@+id/frame_local_area"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:layout_gravity="bottom|right"
  23. android:background="@drawable/video_bg"
  24. android:orientation="vertical"
  25. android:padding="3dip" >
  26. <SurfaceView
  27. android:id="@+id/surface_local"
  28. android:layout_width="match_parent"
  29. android:layout_height="0dip"
  30. android:layout_gravity="center"
  31. android:layout_weight="1" />
  32. <ProgressBar
  33. android:id="@+id/progress_local"
  34. style="?android:attr/progressBarStyleHorizontal"
  35. android:layout_width="match_parent"
  36. android:layout_height="5dip"
  37. android:max="100" />
  38. </LinearLayout>
  39. </FrameLayout>