فهرست منبع

1.添加获取mmse试题库UI跳转

王鹏鹏 2 سال پیش
والد
کامیت
f9faf295ef
2فایلهای تغییر یافته به همراه8 افزوده شده و 10 حذف شده
  1. 2 2
      mmse/src/main/res/layout/fragment_multiple_choice.xml
  2. 6 8
      mmse/src/main/res/layout/item_choice.xml

+ 2 - 2
mmse/src/main/res/layout/fragment_multiple_choice.xml

@@ -74,8 +74,8 @@
                 <androidx.recyclerview.widget.RecyclerView
                     android:id="@+id/rvChoice"
                     android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:layout_marginTop="@dimen/divider_23px"
+                    android:layout_height="match_parent"
+                    android:layout_marginTop="@dimen/divider_15px"
                     android:layout_marginBottom="@dimen/divider_23px"
                     app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
 

+ 6 - 8
mmse/src/main/res/layout/item_choice.xml

@@ -12,13 +12,14 @@
 
     <LinearLayout
         android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
+        android:layout_height="@dimen/divider_57px"
         android:layout_marginTop="@dimen/divider_24px"
+        android:gravity="center_vertical"
         android:orientation="horizontal">
 
         <TextView
             android:layout_width="wrap_content"
-            android:layout_height="@dimen/divider_57px"
+            android:layout_height="match_parent"
             android:layout_marginStart="@dimen/divider_16px"
             android:background="@drawable/bg_choice_item"
             android:gravity="center_vertical"
@@ -30,13 +31,13 @@
         <RadioGroup
             android:id="@+id/radioChoice"
             android:layout_width="wrap_content"
-            android:layout_height="@dimen/divider_57px"
+            android:layout_height="match_parent"
             android:orientation="horizontal">
 
             <RadioButton
                 android:id="@+id/radioCorrect"
                 android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_height="match_parent"
                 android:layout_marginStart="@dimen/divider_20px"
                 android:background="@drawable/selector_questions_choice"
                 android:button="@null"
@@ -48,7 +49,7 @@
             <RadioButton
                 android:id="@+id/radioDeny"
                 android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_height="match_parent"
                 android:layout_marginStart="@dimen/divider_12px"
                 android:layout_marginEnd="@dimen/divider_19px"
                 android:background="@drawable/selector_questions_choice"
@@ -59,8 +60,5 @@
                 android:textStyle="bold" />
 
         </RadioGroup>
-
-
     </LinearLayout>
-
 </layout>