Issue 546, let share screen scroll on tiny screens
[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
24   <!-- ScrollView wrapper is to accommodate small screens -->
25   <ScrollView
26       android:layout_width="fill_parent"
27       android:layout_height="fill_parent">
28
29     <!-- Must wrap the rest in one layout -->
30     <LinearLayout
31         android:layout_width="fill_parent"
32         android:layout_height="fill_parent"
33         android:gravity="center"
34         android:orientation="vertical"
35         android:padding="16dip">
36
37       <TextView
38           android:layout_width="wrap_content"
39           android:layout_height="wrap_content"
40           android:textColor="@color/share_text"
41           android:textSize="18sp"
42           android:text="@string/msg_share_explanation"
43           android:paddingBottom="24dip"/>
44
45       <ImageView
46           android:layout_width="wrap_content"
47           android:layout_height="wrap_content"
48           android:scaleType="center"
49           android:src="@drawable/share_via_barcode"
50           android:paddingBottom="24dip"/>
51
52       <LinearLayout
53           android:layout_width="fill_parent"
54           android:layout_height="wrap_content"
55           android:orientation="horizontal"
56           android:paddingBottom="8dip">
57
58         <Button android:id="@+id/app_button"
59                 android:layout_width="fill_parent"
60                 android:layout_height="wrap_content"
61                 android:layout_weight="1"
62                 android:text="@string/button_share_app"/>
63
64         <Button android:id="@+id/bookmark_button"
65                 android:layout_width="fill_parent"
66                 android:layout_height="wrap_content"
67                 android:layout_weight="1"
68                 android:text="@string/button_share_bookmark"/>
69
70       </LinearLayout>
71
72       <LinearLayout
73           android:layout_width="fill_parent"
74           android:layout_height="wrap_content"
75           android:orientation="horizontal">
76
77         <Button android:id="@+id/contact_button"
78                 android:layout_width="fill_parent"
79                 android:layout_height="wrap_content"
80                 android:layout_weight="1"
81                 android:text="@string/button_share_contact"/>
82
83         <Button android:id="@+id/clipboard_button"
84                 android:layout_width="fill_parent"
85                 android:layout_height="wrap_content"
86                 android:layout_weight="1"
87                 android:text="@string/button_share_clipboard"/>
88
89       </LinearLayout>
90
91     </LinearLayout>
92
93   </ScrollView>
94
95 </LinearLayout>