mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-14 08:57:53 -05:00
This version of the Barcode Scanner uses an Android Library project to pull in the ZXing code instead of having to install the separate application.
98 lines
3.4 KiB
XML
Executable File
98 lines
3.4 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (C) 2008 ZXing authors
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<!-- ScrollView wrapper is to accommodate small screens. -->
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center">
|
|
|
|
<!-- Must wrap the rest in one layout -->
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="8dip">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/share_text"
|
|
android:textSize="18sp"
|
|
android:text="@string/msg_share_explanation"
|
|
android:paddingBottom="8dip"/>
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:scaleType="center"
|
|
android:src="@drawable/share_via_barcode"
|
|
android:paddingBottom="8dip"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="8dip">
|
|
|
|
<Button android:id="@+id/share_app_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/button_share_app"/>
|
|
|
|
<Button android:id="@+id/share_bookmark_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/button_share_bookmark"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="8dip">
|
|
|
|
<Button android:id="@+id/share_contact_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/button_share_contact"/>
|
|
|
|
<Button android:id="@+id/share_clipboard_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/button_share_clipboard"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<EditText android:id="@+id/share_text_view"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:hint="@string/msg_share_text"
|
|
android:singleLine="true"
|
|
android:selectAllOnFocus="true"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |