Browse Source

1.护士主机首页,病床页面显示优化

xunchuanzhi 1 year ago
parent
commit
f96ce71c4a

+ 11 - 4
android_host/src/main/res/layout/adapter_home_frame_bed_item.xml

@@ -49,14 +49,21 @@
 
         </RelativeLayout>
 
-        <TextView
+
+        <com.wdkl.ncs.android.lib.widget.MarqueeTextView
             android:id="@+id/bed_item_name"
-            android:layout_width="wrap_content"
+            android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_alignParentLeft="true"
             android:layout_centerVertical="true"
             android:layout_marginTop="@dimen/d5"
-            android:text="张秀芬"
+            android:gravity="center"
+            android:ellipsize="marquee"
+            android:focusable="true"
+            android:focusableInTouchMode="true"
+            android:singleLine="true"
+            android:marqueeRepeatLimit="marquee_forever"
+            android:text="---"
             android:textColor="@color/black"
             android:textStyle="bold"
             android:textSize="@dimen/font_size_18" />
@@ -68,7 +75,7 @@
             android:layout_alignParentLeft="true"
             android:layout_centerVertical="true"
             android:layout_marginTop="@dimen/d3"
-            android:text="28,男 "
+            android:text="--"
             android:textColor="@color/color_pop_header"
             android:textSize="@dimen/font_size_14" />
 

+ 8 - 2
android_host/src/main/res/layout/adapter_home_frame_bed_lay.xml

@@ -49,13 +49,19 @@
 
         </RelativeLayout>
 
-        <TextView
+        <com.wdkl.ncs.android.lib.widget.MarqueeTextView
             android:id="@+id/bed_lay_name"
-            android:layout_width="wrap_content"
+            android:layout_width="match_parent"
             android:layout_height="wrap_content"
+            android:gravity="center"
             android:layout_alignParentLeft="true"
             android:layout_centerVertical="true"
             android:layout_marginTop="@dimen/d5"
+            android:ellipsize="marquee"
+            android:focusable="true"
+            android:focusableInTouchMode="true"
+            android:singleLine="true"
+            android:marqueeRepeatLimit="marquee_forever"
             android:text="张秀芬"
             android:textColor="@color/black"
             android:textStyle="bold"