86aae4f118a95d3812c9c7df9b56661a857da208
[zxing.git] / android / res / layout / share.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (C) 2008 ZXing authors
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18               android:id="@+id/encode_view"
19               android:layout_width="fill_parent"
20               android:layout_height="fill_parent"
21               android:background="@color/share_view"
22               android:orientation="vertical"
23               android:padding="16dip">
24
25   <TextView
26       android:layout_width="fill_parent"
27       android:layout_height="wrap_content"
28       android:gravity="left"
29       android:textColor="@color/share_text"
30       android:textSize="14sp"
31       android:text="@string/msg_share_explanation"
32       android:paddingBottom="24dip"/>
33
34   <ImageView
35       android:layout_width="fill_parent"
36       android:layout_height="wrap_content"
37       android:layout_gravity="center"
38       android:scaleType="center"
39       android:src="@drawable/share_via_barcode"
40       android:paddingBottom="24dip"/>
41
42   <LinearLayout
43       android:layout_width="fill_parent"
44       android:layout_height="wrap_content"
45       android:layout_weight="0"
46       android:layout_gravity="center"
47       android:orientation="horizontal"
48       android:gravity="center"
49       android:weightSum="1"
50       android:paddingBottom="8dip">
51
52     <Button android:id="@+id/contact_button"
53             android:layout_width="0dip"
54             android:layout_height="wrap_content"
55             android:layout_weight="0.4"
56             android:text="@string/button_share_contact"/>
57
58     <Button android:id="@+id/bookmark_button"
59             android:layout_width="0dip"
60             android:layout_height="wrap_content"
61             android:layout_weight="0.4"
62             android:text="@string/button_share_bookmark"/>
63
64   </LinearLayout>
65
66   <LinearLayout
67       android:layout_width="fill_parent"
68       android:layout_height="wrap_content"
69       android:layout_weight="0"
70       android:orientation="horizontal"
71       android:gravity="center"
72       android:weightSum="1">
73
74     <Button android:id="@+id/clipboard_button"
75             android:layout_width="0dip"
76             android:layout_height="wrap_content"
77             android:layout_weight="0.4"
78             android:text="@string/button_share_clipboard"/>
79
80     <Button android:id="@+id/app_button"
81             android:layout_width="0dip"
82             android:layout_height="wrap_content"
83             android:layout_weight="0.4"
84             android:text="@string/button_share_app"/>
85
86   </LinearLayout>
87
88 </LinearLayout>