• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
18<!-- ScrollView wrapper is to accommodate small screens. -->
19<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
20            xmlns:tools="http://schemas.android.com/tools"
21            android:layout_width="wrap_content"
22            android:layout_height="wrap_content"
23            android:layout_gravity="center"
24            android:gravity="center">
25
26  <!-- Must wrap the rest in one layout -->
27  <LinearLayout
28      android:layout_width="wrap_content"
29      android:layout_height="wrap_content"
30      android:gravity="center"
31      android:orientation="vertical"
32      android:padding="@dimen/standard_padding">
33
34    <TextView
35        android:layout_width="wrap_content"
36        android:layout_height="wrap_content"
37        android:gravity="center"
38        android:text="@string/msg_share_explanation"
39        android:paddingBottom="@dimen/standard_padding"
40        android:textIsSelectable="false"/>
41
42    <ImageView
43        android:layout_width="wrap_content"
44        android:layout_height="wrap_content"
45        android:scaleType="center"
46        android:src="@drawable/share_via_barcode"
47        android:paddingBottom="@dimen/standard_padding"
48        tools:ignore="ContentDescription"/>
49
50    <LinearLayout
51        android:layout_width="fill_parent"
52        android:layout_height="wrap_content"
53        android:orientation="horizontal"
54        android:paddingBottom="@dimen/standard_padding">
55
56      <Button android:id="@+id/share_app_button"
57              style="@style/ShareButton"
58              android:layout_weight="1"
59              android:text="@string/button_share_app"/>
60
61      <Button android:id="@+id/share_bookmark_button"
62              style="@style/ShareButton"
63              android:layout_weight="1"
64              android:text="@string/button_share_bookmark"/>
65
66    </LinearLayout>
67
68    <LinearLayout
69        android:layout_width="fill_parent"
70        android:layout_height="wrap_content"
71        android:orientation="horizontal"
72        android:paddingBottom="@dimen/standard_padding">
73
74      <Button android:id="@+id/share_contact_button"
75              style="@style/ShareButton"
76              android:layout_weight="1"
77              android:text="@string/button_share_contact"/>
78
79      <Button android:id="@+id/share_clipboard_button"
80              style="@style/ShareButton"
81              android:layout_weight="1"
82              android:text="@string/button_share_clipboard"/>
83
84    </LinearLayout>
85
86    <EditText android:id="@+id/share_text_view"
87              android:layout_width="fill_parent"
88              android:layout_height="wrap_content"
89              android:hint="@string/msg_share_text"
90              android:singleLine="true"
91              android:selectAllOnFocus="true"/>
92
93  </LinearLayout>
94
95</ScrollView>