Skip to content

Instantly share code, notes, and snippets.

@FeherMarcell
Created June 5, 2013 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FeherMarcell/5713200 to your computer and use it in GitHub Desktop.
Save FeherMarcell/5713200 to your computer and use it in GitHub Desktop.
ImplicitIntentDemoApp
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<Button
android:id="@+id/scanQrBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="@string/scan_qr_button" />
<TextView
android:id="@+id/scanResultTextview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/scanQrBtn"
android:typeface="monospace"
android:hint="@string/qr_scan_result_will_come_here_"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Button
android:id="@+id/shareScanBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/scanResultTextview"
android:layout_marginTop="20dp"
android:enabled="false"
android:drawableRight="@android:drawable/ic_menu_share"
android:text="@string/share_scan_result" />
<Button
android:id="@+id/pickImageBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/shareScanBtn"
android:layout_marginTop="20dp"
android:text="@string/pick_image" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">ImplicitIntentDemo</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
<string name="scan_qr_button">Scan QR code</string>
<string name="scan_fail_no_app">Please install Barcode Scanner application from Google Play!</string>
<string name="share_scan_result">Share scan result</string>
<string name="pick_image">Pick an image from gallery</string>
<string name="qr_scan_result_will_come_here_">QR scan result will come here...</string>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment