From 75417d96b932dc5da0b3457fa1bc663fa64034f7 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期三, 29 十一月 2023 17:45:49 +0800
Subject: [PATCH] 修改权限逻辑,获取权限后再生成数据库 数据库保存在sd防止用户删除后没有数据了
---
app/src/main/res/layout/activity_home.xml | 39 +++++++++++++++++++++++++++++----------
1 files changed, 29 insertions(+), 10 deletions(-)
diff --git a/app/src/main/res/layout/activity_home.xml b/app/src/main/res/layout/activity_home.xml
index ea0c492..2200b50 100644
--- a/app/src/main/res/layout/activity_home.xml
+++ b/app/src/main/res/layout/activity_home.xml
@@ -14,42 +14,45 @@
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="50dp"
android:layout_gravity="center"
- android:layout_marginTop="50dp"
+ android:layout_marginTop="30dp"
android:orientation="horizontal">
<TextView
android:id="@+id/home_newCard"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
- android:text="鏂板崱娉ㄥ唽"
+ android:text="鏂板崱寮�鎴�"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
<TextView
android:id="@+id/home_recharge"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="鍏呭��"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
<TextView
android:id="@+id/home_redCard"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="璇诲彇鍗$墖"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="50dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:orientation="horizontal">
@@ -57,29 +60,45 @@
<TextView
android:id="@+id/home_admin"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="绠$悊绯荤粺"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
<TextView
android:id="@+id/home_parameter"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="鍙傛暟璁剧疆"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
<TextView
android:id="@+id/home_my"
android:layout_width="0dp"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="涓汉涓績"
+ android:textColor="@color/text_selecter"
android:textSize="@dimen/home_text_size" />
</LinearLayout>
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="bottom|center_horizontal">
+
+ <TextView
+ android:id="@+id/socketState"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="20dp"
+ android:text="宸茶繛鎺ユ暟鎹腑蹇�" />
+ </LinearLayout>
+
</LinearLayout>
\ No newline at end of file
--
Gitblit v1.8.0