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