source: internals/2016/screencastmultiplayergame_control/trunk/SampleApps/FirstMotionDetector/app/src/main/res/layout/activity_main.xml @ 16437

Last change on this file since 16437 was 16437, checked in by jesteves, 3 years ago

Added Android sample apps. Not sure if all were added successfully

File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3    xmlns:tools="http://schemas.android.com/tools"
4    android:layout_width="match_parent"
5    android:layout_height="match_parent"
6    android:paddingBottom="@dimen/activity_vertical_margin"
7    android:paddingLeft="@dimen/activity_horizontal_margin"
8    android:paddingRight="@dimen/activity_horizontal_margin"
9    android:paddingTop="@dimen/activity_vertical_margin"
10    tools:context="com.caixamagica.firstmotiondetector.MainActivity">
11
12    <Button
13        android:layout_width="wrap_content"
14        android:layout_height="wrap_content"
15        android:text="START"
16        android:id="@+id/startButton"
17        android:layout_alignParentTop="true"
18        android:layout_centerHorizontal="true"
19        android:layout_marginTop="100dp" />
20
21    <TextView
22        android:layout_width="wrap_content"
23        android:layout_height="wrap_content"
24        android:textAppearance="?android:attr/textAppearanceMedium"
25        android:text="Total # of actions:"
26        android:id="@+id/textView"
27        android:textAlignment="textEnd"
28        android:layout_alignParentTop="true"
29        android:layout_alignParentRight="true"
30        android:layout_alignParentEnd="true"
31        android:layout_marginTop="200dp"
32        android:layout_marginRight="190dp" />
33
34    <TextView
35        android:layout_width="wrap_content"
36        android:layout_height="wrap_content"
37        android:textAppearance="?android:attr/textAppearanceMedium"
38        android:text="Best action score:"
39        android:id="@+id/textView2"
40        android:textAlignment="textEnd"
41        android:layout_below="@+id/textView"
42        android:layout_alignRight="@+id/textView"
43        android:layout_alignEnd="@+id/textView"
44        android:layout_marginTop="10dp" />
45
46    <TextView
47        android:layout_width="wrap_content"
48        android:layout_height="wrap_content"
49        android:textAppearance="?android:attr/textAppearanceMedium"
50        android:text="-"
51        android:id="@+id/totalActionsTextView"
52        android:textAlignment="textEnd"
53        android:layout_alignTop="@+id/textView"
54        android:layout_toRightOf="@+id/textView2"
55        android:layout_toEndOf="@+id/textView2"
56        android:layout_marginLeft="10dp" />
57
58    <TextView
59        android:layout_width="wrap_content"
60        android:layout_height="wrap_content"
61        android:textAppearance="?android:attr/textAppearanceMedium"
62        android:text="-"
63        android:id="@+id/bestScoreTextView"
64        android:textAlignment="textEnd"
65        android:layout_alignTop="@+id/textView2"
66        android:layout_alignLeft="@+id/totalActionsTextView"
67        android:layout_alignStart="@+id/totalActionsTextView" />
68</RelativeLayout>
Note: See TracBrowser for help on using the repository browser.