Skip to content

Commit

Permalink
Added UI for credit cards. Code for reading MasterCard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Skora committed May 24, 2012
1 parent 46a0942 commit 0914816
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 233 deletions.
12 changes: 6 additions & 6 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.skora.ecinfograbber"
android:versionCode="1"
android:versionName="1.0" >
package="net.skora.eccardinfos"
android:versionCode="2"
android:versionName="0.1.1" >

<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.NFC"/>
<uses-feature android:required="true" android:name="android.hardware.nfc"/>
<uses-feature android:required="false" android:name="android.hardware.touchscreen"/>

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ECInformationGrabberActivity"
android:name=".ECCardInfosActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
59 changes: 59 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@
android:text="" />
</TableRow>

<TableRow
android:id="@+id/tableRow9"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >

<TextView
android:id="@+id/ui_cardtype"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dp"
android:text="@string/ui_cardtype"
android:textAppearance="?android:attr/textAppearanceMedium" />

<TextView
android:id="@+id/display_cardtype"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />

</TableRow>

<TableRow
android:id="@+id/tableRow4"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -170,6 +191,44 @@

</TableLayout>

<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/ui_head_kk"
android:textAppearance="?android:attr/textAppearanceLarge" />

<TableLayout
android:id="@+id/tableLayout3"
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<TableRow
android:id="@+id/tableRow8"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >

<TextView
android:id="@+id/ui_kk"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dp"
android:text="@string/ui_kk"
android:textAppearance="?android:attr/textAppearanceMedium" />

<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />

<TextView
android:id="@+id/display_kknr"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>

<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
Expand Down
5 changes: 4 additions & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">EC-Karten Infos</string>
<string name="app_name">EC Karten Infos</string>
<string name="error_nfc_not_avail">NFC nicht verfügbar!</string>
<string name="ui_nfcid">NFC ID</string>
<string name="ui_blz">BLZ</string>
Expand All @@ -17,5 +17,8 @@
<string name="ui_pse">PSE</string>
<string name="text_yes">Ja</string>
<string name="text_no">Nein</string>
<string name="ui_head_kk">- Kreditkarte -</string>
<string name="ui_kk">Kreditk.-Nummer</string>
<string name="ui_cardtype">Typ</string>

</resources>
226 changes: 0 additions & 226 deletions src/net/skora/ecinfograbber/ECInformationGrabberActivity.java

This file was deleted.

0 comments on commit 0914816

Please sign in to comment.