From 7cfa7455b345faa55f2d11ff21b1e6b9e678a5a2 Mon Sep 17 00:00:00 2001
From: zuoxiao <470321431@qq.com>
Date: 星期五, 16 八月 2024 15:51:16 +0800
Subject: [PATCH] 界面添加图标

---
 qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml |  188 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 144 insertions(+), 44 deletions(-)

diff --git a/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml b/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml
index e922610..16b9129 100644
--- a/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml
+++ b/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml
@@ -14,56 +14,112 @@
 
     <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="50dp"
+        android:layout_height="wrap_content"
         android:layout_gravity="center"
         android:layout_marginTop="30dp"
         android:orientation="horizontal">
 
-        <TextView
+        <LinearLayout
             android:id="@+id/home_newCard"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="鏂板崱寮�鎴�"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
 
-        <TextView
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_add" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:gravity="center"
+                android:text="鏂板崱寮�鎴�"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+
+        </LinearLayout>
+
+        <LinearLayout
             android:id="@+id/home_recharge"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="鍏呭��"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
 
-        <TextView
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_recharge" />
+
+            <TextView
+
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:text="鍏呭��"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
+
+        <LinearLayout
             android:id="@+id/home_redCard"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="璇诲彇鍗$墖"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
+
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_read" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:gravity="center"
+                android:text="璇诲彇鍗$墖"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
     </LinearLayout>
+
     <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="50dp"
+        android:layout_height="wrap_content"
         android:layout_gravity="center"
-        android:layout_marginTop="30dp"
+
+        android:layout_marginTop="40dp"
         android:orientation="horizontal">
-        <TextView
+
+        <LinearLayout
             android:id="@+id/home_loss"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="鎸傚け"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
+
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_report" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:text="鎸傚け"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
+
         <TextView
             android:id="@+id/home_reportLoss"
             android:layout_width="0dp"
@@ -72,33 +128,65 @@
             android:gravity="center"
             android:text="瑙i櫎鎸傚け"
             android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
-        <TextView
+            android:textSize="@dimen/home_text_size"
+            android:visibility="gone" />
+
+        <LinearLayout
             android:id="@+id/home_replacement"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="琛ュ崱"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
+
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_replacement" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:text="琛ュ崱"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
+
+
     </LinearLayout>
+
     <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="50dp"
+        android:layout_height="wrap_content"
         android:layout_gravity="center"
-        android:layout_marginTop="30dp"
+        android:layout_marginTop="40dp"
         android:orientation="horizontal">
 
-        <TextView
+        <LinearLayout
             android:id="@+id/home_admin"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="绠$悊绯荤粺"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:orientation="vertical">
+
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_system" />
+
+            <TextView
+
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:text="绠$悊绯荤粺"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
 
         <TextView
             android:id="@+id/home_parameter"
@@ -107,21 +195,33 @@
             android:layout_weight="1"
             android:gravity="center"
             android:text="鍙傛暟璁剧疆"
-            android:visibility="invisible"
             android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
+            android:textSize="@dimen/home_text_size"
+            android:visibility="gone" />
 
-        <TextView
+        <LinearLayout
             android:id="@+id/home_my"
             android:layout_width="0dp"
-            android:layout_height="match_parent"
+            android:layout_height="wrap_content"
             android:layout_weight="1"
             android:gravity="center"
-            android:text="涓汉涓績"
-            android:textColor="@color/text_selecter_color"
-            android:textSize="@dimen/home_text_size" />
-    </LinearLayout>
+            android:orientation="vertical">
 
+            <ImageView
+                android:layout_width="70dp"
+                android:layout_height="70dp"
+                android:src="@drawable/home_my" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="match_parent"
+                android:layout_weight="1"
+                android:gravity="center"
+                android:text="涓汉涓績"
+                android:textColor="@color/text_selecter_color"
+                android:textSize="@dimen/home_text_size" />
+        </LinearLayout>
+    </LinearLayout>
 
 
 </LinearLayout>
\ No newline at end of file

--
Gitblit v1.8.0