Fix a formatting problem on smaller device
[zxing.git] / android / res / layout-land / 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:gravity="center"
22               android:background="@color/share_view"
23               android:orientation="vertical"
24               android:padding="16dip">
25
26   <TextView
27       android:layout_width="fill_parent"
28       android:layout_height="0dip"
29       android:layout_weight="1"
30       android:textColor="@color/share_text"
31       android:textSize="22sp"
32       android:text="@string/msg_share_explanation"/>
33
34   <LinearLayout
35       android:layout_width="fill_parent"
36       android:layout_height="0dip"
37       android:layout_weight="2"
38       android:background="@color/share_view"
39       android:orientation="horizontal">
40
41     <ImageView
42         android:layout_width="0dip"
43         android:layout_height="fill_parent"
44         android:layout_weight="2"
45         android:scaleType="center"
46         android:src="@drawable/share_via_barcode"
47         android:paddingRight="32dip"/>
48
49     <LinearLayout
50         android:layout_width="0dip"
51         android:layout_height="fill_parent"
52         android:layout_weight="1"
53         android:orientation="vertical">
54
55       <Button android:id="@+id/contact_button"
56               android:layout_width="fill_parent"
57               android:layout_height="fill_parent"
58               android:layout_weight="1"
59               android:text="@string/button_share_contact"/>
60
61       <Button android:id="@+id/bookmark_button"
62               android:layout_width="fill_parent"
63               android:layout_height="fill_parent"
64               android:layout_weight="1"
65               android:text="@string/button_share_bookmark"/>
66
67     </LinearLayout>
68
69     <LinearLayout
70         android:layout_width="0dip"
71         android:layout_height="fill_parent"
72         android:layout_weight="1"
73         android:orientation="vertical">
74
75       <Button android:id="@+id/clipboard_button"
76               android:layout_width="fill_parent"
77               android:layout_height="fill_parent"
78               android:layout_weight="1"
79               android:text="@string/button_share_clipboard"/>
80
81       <Button android:id="@+id/app_button"
82               android:layout_width="fill_parent"
83               android:layout_height="fill_parent"
84               android:layout_weight="1"
85               android:text="@string/button_share_app"/>
86
87     </LinearLayout>
88
89   </LinearLayout>
90
91 </LinearLayout>