Implement EMV

This commit is contained in:
riz081 2025-06-18 14:41:18 +07:00
parent 9834d4b841
commit 2ea0792d28
2 changed files with 1423 additions and 308 deletions

View File

@ -1,30 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- app/src/main/res/layout/activity_credit_card.xml -->
<!-- SUPER MINIMAL VERSION - GUARANTEED TO WORK -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:orientation="vertical"
android:padding="16dp">
<!-- Toolbar -->
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
android:background="?attr/colorPrimary" />
<!-- Toggle EMV Mode Button -->
<Button
android:id="@+id/btn_toggle_mode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:text="Toggle EMV Mode" />
<!-- Mode Indicator -->
<TextView
android:id="@+id/tv_result"
android:id="@+id/tv_mode_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="Current Mode: Simple Mode"
android:textStyle="bold"
android:gravity="center"
android:background="#EEEEEE" />
<!-- Scrollable Result Area -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="16dp"
android:text="Ready to scan card..."
android:gravity="top" />
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<TextView
android:id="@+id/tv_result"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="12dp"
android:text="Ready to scan card..."
android:textSize="12sp"
android:fontFamily="monospace"
android:textIsSelectable="true"
android:background="@android:color/white" />
</ScrollView>
<!-- Copy Button -->
<Button
android:id="@+id/btn_copy_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Copy Card Data"
android:visibility="gone" />
<!-- Clear Button -->
<Button
android:id="@+id/btn_clear_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clear Data"
android:visibility="gone" />
<!-- Check Card Button -->
<Button
android:id="@+id/btn_check_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:text="@string/card_start_check_card" />
android:text="Start Scanning"
android:textSize="16sp"
android:padding="16dp" />
</LinearLayout>