| 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="${relativePackage}.${activityClass}"> |
| 7 |
|
| 8 |
<!-- The primary full-screen view. This can be replaced with whatever view |
| 9 |
is needed to present your content, e.g. VideoView, SurfaceView, |
| 10 |
TextureView, etc. --> |
| 11 |
<TextView android:id="@+id/fullscreen_content" |
| 12 |
android:layout_width="match_parent" |
| 13 |
android:layout_height="match_parent" |
| 14 |
android:keepScreenOn="true" |
| 15 |
android:textColor="#33b5e5" |
| 16 |
android:textStyle="bold" |
| 17 |
android:textSize="50sp" |
| 18 |
android:gravity="center" |
| 19 |
android:text="@string/dummy_content" /> |
| 20 |
|
| 21 |
<!-- This FrameLayout insets its children based on system windows using |
| 22 |
android:fitsSystemWindows. --> |
| 23 |
<FrameLayout android:layout_width="match_parent" |
| 24 |
android:layout_height="match_parent" |
| 25 |
android:fitsSystemWindows="true"> |
| 26 |
|
| 27 |
<LinearLayout 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 |
|
| 36 |
<Button 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 |
|
| 43 |
</LinearLayout> |
| 44 |
</FrameLayout> |
| 45 |
|
| 46 |
</FrameLayout> |