]> git.somenet.org - android/helloworld.git/blob - app/src/main/res/layout/activity_main.xml
GITOLITE.txt
[android/helloworld.git] / app / src / main / res / layout / activity_main.xml
1 <RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
4     android:paddingRight="@dimen/activity_horizontal_margin"
5     android:paddingTop="@dimen/activity_vertical_margin"
6     android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
7
8     <TextView android:text="@string/hello_world" android:layout_width="wrap_content"
9         android:layout_height="wrap_content"
10         android:layout_alignParentTop="true"
11         android:layout_centerHorizontal="true"
12         android:id="@+id/textView" />
13
14     <CheckBox
15         android:layout_width="wrap_content"
16         android:layout_height="wrap_content"
17         android:text="New CheckBox"
18         android:id="@+id/checkBox"
19         android:layout_below="@+id/progressBar"
20         android:layout_centerHorizontal="true" />
21
22     <Switch
23         android:layout_width="wrap_content"
24         android:layout_height="wrap_content"
25         android:text="New Switch"
26         android:id="@+id/switch1"
27         android:layout_below="@+id/checkBox"
28         android:layout_centerHorizontal="true" />
29
30     <ProgressBar
31         style="?android:attr/progressBarStyleLarge"
32         android:layout_width="wrap_content"
33         android:layout_height="wrap_content"
34         android:id="@+id/progressBar"
35         android:max="100"
36         android:indeterminate="false"
37         android:layout_below="@+id/textView"
38         android:layout_centerHorizontal="true" />
39
40 </RelativeLayout>