activity_viewer.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. android:background="@drawable/background"
  6. tools:context="app.brest.testmin3d.ViewerActivity">
  7. <!-- The primary full-screen view. This can be replaced with whatever view
  8. is needed to present your content, e.g. VideoView, SurfaceView,
  9. TextureView, etc. -->
  10. <!-- This FrameLayout insets its children based on system windows using
  11. android:fitsSystemWindows. -->
  12. <Button
  13. android:layout_width="match_parent"
  14. android:layout_height="70dp"
  15. android:text="Carte"
  16. android:id="@+id/b_title"
  17. android:layout_alignParentBottom="false"
  18. android:layout_centerHorizontal="true"
  19. android:layout_alignParentTop="true"
  20. android:textColor="@color/dull_4"
  21. android:textSize="30dp"
  22. android:textStyle="bold"
  23. android:background="@drawable/title" />
  24. <Button
  25. android:layout_width="match_parent"
  26. android:layout_height="60dp"
  27. android:text="Informations"
  28. android:id="@+id/button_info"
  29. android:layout_alignParentBottom="true"
  30. android:layout_centerHorizontal="true"
  31. android:background="@drawable/button"
  32. android:textColor="#33b5e5"
  33. android:textStyle="bold"
  34. android:textSize="25dp"
  35. android:onClick="onClickInfo" />
  36. <FrameLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:layout_above="@+id/button_info"
  40. android:id="@+id/frame_viewer"
  41. android:layout_below="@+id/b_title">
  42. <ImageView
  43. android:layout_width="fill_parent"
  44. android:layout_height="fill_parent"
  45. android:id="@+id/imageView"
  46. android:layout_gravity="center"
  47. android:adjustViewBounds="true"
  48. android:cropToPadding="false"
  49. android:focusableInTouchMode="true"
  50. android:focusable="true"
  51. android:visibility="visible" />
  52. <VideoView
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent"
  55. android:id="@+id/vv_media"
  56. android:layout_gravity="center" />
  57. <TextView
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. android:textAppearance="?android:attr/textAppearanceMedium"
  61. android:text="Medium Text"
  62. android:id="@+id/tv_comment"
  63. android:layout_gravity="center"
  64. android:textColor="#33b5e5"
  65. android:textSize="20dp"
  66. android:visibility="invisible" />
  67. </FrameLayout>
  68. </RelativeLayout>