浏览代码

1.优化代码

王鹏鹏 1 年之前
父节点
当前提交
d68e8b3c00
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      .idea/misc.xml
  2. 4 1
      home/src/main/res/layout/activity_home.xml

+ 1 - 0
.idea/misc.xml

@@ -541,6 +541,7 @@
         <entry key="..\:/workspace/hcp-pads/healthconsultation/src/main/res/layout/item_search_doctor.xml" value="0.23697916666666666" />
         <entry key="..\:/workspace/hcp-pads/home/src/main/res/drawable/bg_home_task_btn.xml" value="0.151" />
         <entry key="..\:/workspace/hcp-pads/home/src/main/res/drawable/bg_home_task_progress.xml" value="0.151" />
+        <entry key="..\:/workspace/hcp-pads/home/src/main/res/drawable/bg_home_title.xml" value="0.151" />
         <entry key="..\:/workspace/hcp-pads/home/src/main/res/drawable/bg_results_content.xml" value="0.151" />
         <entry key="..\:/workspace/hcp-pads/home/src/main/res/drawable/shape_ract_gold.xml" value="0.151" />
         <entry key="..\:/workspace/hcp-pads/home/src/main/res/layout/activity_binding_evaluation.xml" value="0.23697916666666666" />

+ 4 - 1
home/src/main/res/layout/activity_home.xml

@@ -43,12 +43,15 @@
 
                 <androidx.appcompat.widget.AppCompatTextView
                     android:layout_width="match_parent"
-                    android:layout_height="@dimen/divider_61px"
+                    android:layout_height="wrap_content"
                     android:layout_marginStart="@dimen/divider_101px"
                     android:layout_marginTop="@dimen/divider_30px"
                     android:layout_marginEnd="@dimen/divider_31px"
                     android:background="@drawable/bg_home_title"
                     android:gravity="center"
+                    android:paddingStart="@dimen/divider_24px"
+                    android:paddingTop="@dimen/divider_12px"
+                    android:paddingBottom="@dimen/divider_16px"
                     android:text='@{User.INSTANCE.name+",欢迎使用未来蓝豚。"}'
                     android:textColor="@color/color_FF4A76FF"
                     android:textSize="@dimen/divider_24px"