Parcourir la source

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

王鹏鹏 il y a 2 ans
Parent
commit
eaa1d73c3a

+ 1 - 0
.idea/misc.xml

@@ -103,6 +103,7 @@
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_multiple_choice.xml" value="0.2845528455284553" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_number.xml" value="0.23697916666666666" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_recognition_image.xml" value="0.22239583333333332" />
+        <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_repeat.xml" value="0.22239583333333332" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_selected_item.xml" value="0.264" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_single_judgment.xml" value="0.22239583333333332" />
         <entry key="..\:/workspace/hcp-pad/mmse/src/main/res/layout/fragment_sound_record.xml" value="0.4421768707482993" />

+ 21 - 0
mmse/src/main/java/com/yingyangfly/mmse/fragment/RepeatFragment.kt

@@ -0,0 +1,21 @@
+package com.yingyangfly.mmse.fragment
+
+import com.yingyang.mmse.databinding.FragmentRepeatBinding
+import com.yingyangfly.baselib.base.BaseFragment
+
+/**
+ * 重复
+ */
+class RepeatFragment : BaseFragment<FragmentRepeatBinding>() {
+    override fun initViews() {
+
+    }
+
+    override fun initListener() {
+
+    }
+
+    override fun initData() {
+
+    }
+}

+ 44 - 0
mmse/src/main/res/layout/fragment_repeat.xml

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    tools:ignore="ResourceName">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+
+        <androidx.appcompat.widget.AppCompatButton
+            android:id="@+id/btnPrevious"
+            android:layout_width="@dimen/divider_240px"
+            android:layout_height="@dimen/divider_68px"
+            android:layout_marginStart="@dimen/divider_307px"
+            android:layout_marginBottom="@dimen/divider_60px"
+            android:background="@drawable/bg_previous_question"
+            android:gravity="center"
+            android:text="@string/previous_question"
+            android:textColor="@color/color_FF4A76FF"
+            android:textSize="@dimen/divider_28px"
+            android:textStyle="bold"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintStart_toStartOf="parent" />
+
+        <androidx.appcompat.widget.AppCompatButton
+            android:id="@+id/btnNext"
+            android:layout_width="@dimen/divider_240px"
+            android:layout_height="@dimen/divider_68px"
+            android:layout_marginEnd="@dimen/divider_305px"
+            android:layout_marginBottom="@dimen/divider_60px"
+            android:background="@drawable/bg_next_question"
+            android:gravity="center"
+            android:text="@string/continues"
+            android:textColor="@android:color/white"
+            android:textSize="@dimen/divider_28px"
+            android:textStyle="bold"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintEnd_toEndOf="parent" />
+
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+</layout>

+ 13 - 0
mmse/src/main/res/navigation/nav_home.xml

@@ -108,5 +108,18 @@
         <action
             android:id="@+id/action_recognitionImageFragment_to_countFragment"
             app:destination="@id/countFragment" />
+
+        <action
+            android:id="@+id/action_recognitionImageFragment_to_repeatFragment"
+            app:destination="@id/repeatFragment" />
+    </fragment>
+
+    <fragment
+        android:id="@+id/repeatFragment"
+        android:name="com.yingyangfly.mmse.fragment.RepeatFragment"
+        android:label="repeatFragment">
+        <action
+            android:id="@+id/action_repeatFragment_to_recognitionImageFragment"
+            app:destination="@id/recognitionImageFragment" />
     </fragment>
 </navigation>