浏览代码

期货行情页面item

ProGo 4 年之前
父节点
当前提交
0ca371f5dc

+ 5 - 5
RMA/app/src/main/res/layout/list_head.xml

@@ -12,9 +12,9 @@
         app:layout_constraintTop_toTopOf="parent"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintStart_toStartOf="parent"
-        android:text="名称/代码"
+        android:text="@string/str_list_head_name"
         android:id="@+id/one"
-        app:layout_constraintDimensionRatio="w,4:1"
+        app:layout_constraintDimensionRatio="w,5:1"
         style="@style/ListHeadTextStyle"
         android:layout_marginStart="30dp"
         android:layout_height="wrap_content"/>
@@ -22,7 +22,7 @@
     <TextView
         android:layout_width="0dp"
         android:id="@+id/two"
-        android:text="价格"
+        android:text="@string/str_list_head_price"
         android:gravity="end"
         android:drawableEnd="@mipmap/rma_sort"
         app:layout_constraintTop_toTopOf="parent"
@@ -35,7 +35,7 @@
     <TextView
         android:id="@+id/three"
         android:layout_width="0dp"
-        android:text="涨跌"
+        android:text="@string/str_list_head_up_down"
         android:drawableEnd="@mipmap/rma_sort"
         android:gravity="end"
         app:layout_constraintTop_toTopOf="parent"
@@ -56,7 +56,7 @@
         android:gravity="end"
         style="@style/ListHeadTextStyle"
         android:id="@+id/four"
-        android:text="持仓量"
+        android:text="@string/str_list_head_hold_total"
         android:layout_height="wrap_content"/>
     <include
         android:layout_width="match_parent"

+ 5 - 4
RMA/app/src/main/res/layout/market_item.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     xmlns:app="http://schemas.android.com/apk/res-auto">
@@ -18,14 +19,14 @@
             android:src="@mipmap/rma_choose"
             android:layout_marginTop="16dp"
             android:layout_marginStart="10dp"
-            android:layout_height="16dp"/>
+            android:layout_height="16dp" />
     </RelativeLayout>
 <!--商品-->
     <TextView
         android:layout_width="wrap_content"
         app:layout_constraintTop_toTopOf="parent"
         android:text="铁矿石2105"
-        android:layout_marginTop="16dp"
+        android:layout_marginTop="15dp"
         android:id="@+id/id_goods_name"
         app:layout_constraintDimensionRatio="w,4:1"
         app:layout_constraintStart_toEndOf="@+id/id_choose"
@@ -39,7 +40,7 @@
         style="@style/ListTextStyle"
         app:layout_constraintStart_toEndOf="@+id/id_choose"
         app:layout_constraintBottom_toBottomOf="parent"
-        android:layout_marginBottom="16dp"
+        android:layout_marginBottom="15dp"
         android:layout_height="wrap_content"/>
 
 <!--    价格-->

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

@@ -68,4 +68,8 @@
     <string name="str_deals">成交</string>
     <string name="str_funds">资金</string>
     <string name="str_choose">自选</string>
+    <string name="str_list_head_name">名称/代码</string>
+    <string name="str_list_head_price">价格</string>
+    <string name="str_list_head_up_down">涨跌</string>
+    <string name="str_list_head_hold_total">持仓量</string>
 </resources>