view app/src/main/res/layout/activity_main.xml @ 2:3485a304a057

adding new branch with the original tutorial code -- later merge to main and mod
author kshalle
date Thu, 23 Apr 2015 10:53:54 -0700
parents
children
line source
1 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
3 android:layout_height="match_parent" android:background="#0099cc" tools:context=".MainActivity">
5 <!-- The primary full-screen view. This can be replaced with whatever view
6 is needed to present your content, e.g. VideoView, SurfaceView,
7 TextureView, etc. -->
8 <TextView android:id="@+id/fullscreen_content" android:layout_width="match_parent"
9 android:layout_height="match_parent" android:keepScreenOn="true" android:textColor="#33b5e5"
10 android:textStyle="bold" android:textSize="50sp" android:gravity="center"
11 android:text="@string/dummy_content" />
13 <!-- This FrameLayout insets its children based on system windows using
14 android:fitsSystemWindows. -->
15 <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"
16 android:fitsSystemWindows="true">
18 <LinearLayout android:id="@+id/fullscreen_content_controls" style="?metaButtonBarStyle"
19 android:layout_width="match_parent" android:layout_height="wrap_content"
20 android:layout_gravity="bottom|center_horizontal"
21 android:background="@color/black_overlay" android:orientation="horizontal"
22 tools:ignore="UselessParent">
24 <Button android:id="@+id/dummy_button" style="?metaButtonBarButtonStyle"
25 android:layout_width="0dp" android:layout_height="wrap_content"
26 android:layout_weight="1" android:text="@string/dummy_button" />
28 </LinearLayout>
29 </FrameLayout>
31 </FrameLayout>