Created
June 5, 2013 11:22
-
-
Save FeherMarcell/5713200 to your computer and use it in GitHub Desktop.
ImplicitIntentDemoApp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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