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 | 183 +++++++++++++++++++++++++++++++++------------ 1 files changed, 134 insertions(+), 49 deletions(-) diff --git a/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml b/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml index 5f0ed99..16b9129 100644 --- a/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml +++ b/qiheonlinelibrary/src/main/res/layout/activity_home_qhl.xml @@ -14,58 +14,111 @@ <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" @@ -78,43 +131,62 @@ android:textSize="@dimen/home_text_size" android:visibility="gone" /> - <TextView + <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"> - <TextView - android:id="@+id/home_replacementWrite" - android:layout_width="0dp" - 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" /> + <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" @@ -127,15 +199,28 @@ 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" /> + 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> -- Gitblit v1.8.0