activity_fullscreen_view.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <FrameLayout 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="#0099cc"
  6. tools:context="me.yoqi.app.notescanner.notescanner.activity.FullscreenViewActivity">
  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. <TextView
  11. android:id="@+id/fullscreen_content"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:gravity="center"
  15. android:keepScreenOn="true"
  16. android:text="@string/dummy_content"
  17. android:textColor="#33b5e5"
  18. android:textSize="50sp"
  19. android:textStyle="bold" />
  20. <!-- This FrameLayout insets its children based on system windows using
  21. android:fitsSystemWindows. -->
  22. <FrameLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:fitsSystemWindows="true">
  26. <LinearLayout
  27. android:id="@+id/fullscreen_content_controls"
  28. style="?metaButtonBarStyle"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="bottom|center_horizontal"
  32. android:background="@color/black_overlay"
  33. android:orientation="horizontal"
  34. tools:ignore="UselessParent">
  35. <Button
  36. android:id="@+id/dummy_button"
  37. style="?metaButtonBarButtonStyle"
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:text="@string/dummy_button" />
  42. </LinearLayout>
  43. </FrameLayout>
  44. </FrameLayout>