From 4e06b072b3eb4e93770d34993caeb9df8441fb45 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 13 六月 2024 20:24:46 +0800
Subject: [PATCH] 0312 越南华为初版
---
SdkProject/app/src/main/res/layout/activity_main.xml | 64 ++++++++++++++++++++++++++++++-
1 files changed, 61 insertions(+), 3 deletions(-)
diff --git a/SdkProject/app/src/main/res/layout/activity_main.xml b/SdkProject/app/src/main/res/layout/activity_main.xml
index 0b15a20..c66f4b5 100644
--- a/SdkProject/app/src/main/res/layout/activity_main.xml
+++ b/SdkProject/app/src/main/res/layout/activity_main.xml
@@ -1,9 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".MainActivity">
+ android:background="@color/black"
+ android:gravity="center">
-</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <Button
+ android:id="@+id/login"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:text="login" />
+
+ <Button
+ android:id="@+id/pay"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:text="pay" />
+
+ <Button
+ android:id="@+id/btnA"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:text="A" />
+ <Button
+ android:id="@+id/btnB"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="24dp"
+ android:text="B" />
+
+ </LinearLayout>
+
+ <RelativeLayout
+ android:id="@+id/webContainer"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_centerInParent="true">
+
+ <WebView
+ android:id="@+id/webView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true" />
+
+ <ImageButton
+ android:id="@+id/btnWebClose"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignTop="@id/webView"
+ android:layout_alignEnd="@id/webView"
+ android:layout_marginTop="-13dp"
+ android:layout_marginEnd="-13dp"
+ android:background="@drawable/web_close" />
+
+ </RelativeLayout>
+
+</RelativeLayout>
\ No newline at end of file
--
Gitblit v1.8.0