DESKTOP-6R169VE\hrj 1 rok pred
rodič
commit
9cd7cdb62a

+ 15 - 3
app/src/main/res/layout-large/activity_home.xml

@@ -88,8 +88,9 @@
             android:layout_weight="2"
             android:orientation="vertical">
 
+
             <RelativeLayout
-                android:layout_width="match_parent"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:background="@drawable/home_right_top_blue_bg"
                 android:paddingTop="@dimen/dp_16"
@@ -108,12 +109,24 @@
                 <TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:layout_centerInParent="true"
+                    android:layout_centerInParent="false"
+                    android:layout_centerVertical="true"
+                    android:layout_marginStart="180dp"
                     android:text="@string/activity_home_patient"
                     android:textColor="@android:color/white"
                     android:textSize="@dimen/sp_32" />
 
                 <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_centerInParent="false"
+                    android:layout_centerVertical="true"
+                    android:layout_marginStart="330dp"
+                    android:text="@string/activity_home_undone_times"
+                    android:textColor="@android:color/white"
+                    android:textSize="@dimen/sp_32" />
+
+                <TextView
                     android:id="@+id/activity_home_times"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
@@ -126,7 +139,6 @@
 
             </RelativeLayout>
 
-
             <androidx.recyclerview.widget.RecyclerView
                 android:id="@+id/activity_home_rv"
                 android:layout_width="match_parent"

+ 7 - 5
app/src/main/res/layout-large/activity_home_adapter_item.xml

@@ -31,7 +31,10 @@
         android:id="@+id/home_adapter_item_tv_name"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_centerInParent="true"
+        android:layout_centerInParent="false"
+        android:layout_centerVertical="true"
+        android:layout_marginStart="175dp"
+        android:gravity="center"
         android:textColor="@color/text_color_000f3d"
         android:textSize="@dimen/sp_32"
         tools:text="李*敏" />
@@ -54,12 +57,11 @@
         android:id="@+id/home_adapter_item_tv_times"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:layout_alignParentEnd="true"
         android:layout_centerVertical="true"
-        android:layout_toStartOf="@+id/home_adapter_item_tv_total"
-        android:textColor="@color/text_color_0065dc"
+        android:layout_marginEnd="205dp"
+        android:textColor="@color/text_color_000f3d"
         android:textSize="@dimen/sp_32"
-        android:textStyle="bold"
-        android:visibility="gone"
         tools:text="35" />
 
     <TextView

+ 13 - 2
app/src/main/res/layout/activity_home.xml

@@ -111,13 +111,24 @@
                 <TextView
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:layout_marginEnd="@dimen/dp_100"
-                    android:layout_toStartOf="@+id/activity_home_times"
+                    android:layout_centerInParent="false"
+                    android:layout_centerVertical="true"
+                    android:layout_marginStart="180dp"
                     android:text="@string/activity_home_patient"
                     android:textColor="@android:color/white"
                     android:textSize="@dimen/sp_32" />
 
                 <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_centerInParent="false"
+                    android:layout_centerVertical="true"
+                    android:layout_marginStart="330dp"
+                    android:text="@string/activity_home_undone_times"
+                    android:textColor="@android:color/white"
+                    android:textSize="@dimen/sp_32" />
+
+                <TextView
                     android:id="@+id/activity_home_times"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"

+ 1 - 0
app/src/main/res/values/dimens.xml

@@ -11,6 +11,7 @@
     <dimen name="dp_80">90dp</dimen>
     <dimen name="dp_100">100dp</dimen>
     <dimen name="dp_120">120dp</dimen>
+    <dimen name="dp_150">150dp</dimen>
 
 
 

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -24,6 +24,7 @@
     <string name="activity_home_department_of_tumor_radiotherapy">肿瘤放疗科</string>
     <string name="activity_home_order">序号</string>
     <string name="activity_home_patient">患者</string>
+    <string name="activity_home_undone_times">未完成</string>
     <string name="activity_home_undone_total">总次数</string>
     <string name="activity_home_radiotherapy">正在放疗</string>
 

BIN
call.jks