From f85dc8a9b098580f164c33fca4e8e6412532dbdb Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 24 八月 2023 13:08:59 +0800
Subject: [PATCH] 0312 弹窗
---
SdkProject/app/src/main/res/layout/activity_main.xml | 70 +++++++++++++++++++++++++++++-----
1 files changed, 59 insertions(+), 11 deletions(-)
diff --git a/SdkProject/app/src/main/res/layout/activity_main.xml b/SdkProject/app/src/main/res/layout/activity_main.xml
index 4c76793..c66f4b5 100644
--- a/SdkProject/app/src/main/res/layout/activity_main.xml
+++ b/SdkProject/app/src/main/res/layout/activity_main.xml
@@ -1,19 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout 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"
+ android:background="@color/black"
android:gravity="center">
- <Button
- android:id="@+id/btnInit"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="24dp"
- android:text="init"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/editTextNumber" />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
-</LinearLayout>
\ No newline at end of file
+ <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