/[projects]/android/BarcodeSample/app/src/main/res/layout/activity_main.xml
ViewVC logotype

Annotation of /android/BarcodeSample/app/src/main/res/layout/activity_main.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2559 - (hide annotations) (download) (as text)
Fri May 22 13:26:16 2015 UTC (9 years ago) by torben
File MIME type: text/xml
File size: 2302 byte(s)
Add very basic camera functionality
1 torben 2527 <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:id="@+id/textView"
10     android:layout_height="wrap_content" />
11    
12     <Button
13     android:layout_width="wrap_content"
14     android:layout_height="wrap_content"
15     android:text="New Button"
16     android:id="@+id/button"
17     android:layout_below="@+id/textView"
18     android:layout_alignParentLeft="true"
19     android:layout_alignParentStart="true" />
20    
21     <TextView
22     android:layout_width="wrap_content"
23     android:layout_height="wrap_content"
24     android:textAppearance="?android:attr/textAppearanceLarge"
25     android:text="Large Text"
26     android:id="@+id/scan_format"
27     android:layout_below="@+id/button"
28     android:layout_alignParentLeft="true"
29     android:layout_alignParentStart="true" />
30    
31     <TextView
32     android:layout_width="wrap_content"
33     android:layout_height="wrap_content"
34     android:textAppearance="?android:attr/textAppearanceLarge"
35     android:text="Large Text"
36     android:id="@+id/scan_content"
37     android:layout_below="@+id/scan_format"
38     android:layout_alignParentLeft="true"
39     android:layout_alignParentStart="true" />
40    
41 torben 2559 <Button
42     android:layout_width="wrap_content"
43     android:layout_height="wrap_content"
44     android:text="StartCam"
45     android:id="@+id/button_startcam"
46     android:layout_alignParentBottom="true"
47     android:layout_centerHorizontal="true" />
48    
49     <ImageView
50     android:layout_width="match_parent"
51     android:layout_height="300dp"
52     android:id="@+id/imageView"
53     android:layout_above="@+id/button_startcam"
54     android:layout_centerHorizontal="true" />
55    
56 torben 2527 </RelativeLayout>

  ViewVC Help
Powered by ViewVC 1.1.20