diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/src/main/res/layout/activity_main.xml	Thu Apr 23 10:53:54 2015 -0700
     1.3 @@ -0,0 +1,31 @@
     1.4 +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     1.5 +    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
     1.6 +    android:layout_height="match_parent" android:background="#0099cc" tools:context=".MainActivity">
     1.7 +
     1.8 +    <!-- The primary full-screen view. This can be replaced with whatever view
     1.9 +         is needed to present your content, e.g. VideoView, SurfaceView,
    1.10 +         TextureView, etc. -->
    1.11 +    <TextView android:id="@+id/fullscreen_content" android:layout_width="match_parent"
    1.12 +        android:layout_height="match_parent" android:keepScreenOn="true" android:textColor="#33b5e5"
    1.13 +        android:textStyle="bold" android:textSize="50sp" android:gravity="center"
    1.14 +        android:text="@string/dummy_content" />
    1.15 +
    1.16 +    <!-- This FrameLayout insets its children based on system windows using
    1.17 +         android:fitsSystemWindows. -->
    1.18 +    <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"
    1.19 +        android:fitsSystemWindows="true">
    1.20 +
    1.21 +        <LinearLayout android:id="@+id/fullscreen_content_controls" style="?metaButtonBarStyle"
    1.22 +            android:layout_width="match_parent" android:layout_height="wrap_content"
    1.23 +            android:layout_gravity="bottom|center_horizontal"
    1.24 +            android:background="@color/black_overlay" android:orientation="horizontal"
    1.25 +            tools:ignore="UselessParent">
    1.26 +
    1.27 +            <Button android:id="@+id/dummy_button" style="?metaButtonBarButtonStyle"
    1.28 +                android:layout_width="0dp" android:layout_height="wrap_content"
    1.29 +                android:layout_weight="1" android:text="@string/dummy_button" />
    1.30 +
    1.31 +        </LinearLayout>
    1.32 +    </FrameLayout>
    1.33 +
    1.34 +</FrameLayout>