|
|
@@ -1,7 +1,6 @@
|
|
|
package com.yingyangfly.mmse.fragment
|
|
|
|
|
|
import android.os.Bundle
|
|
|
-import android.util.Log
|
|
|
import androidx.core.os.bundleOf
|
|
|
import androidx.navigation.Navigation
|
|
|
import androidx.recyclerview.widget.GridLayoutManager
|
|
|
@@ -51,6 +50,22 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
rvInput.layoutManager = GridLayoutManager(mContext, 3)
|
|
|
rvInput.adapter = adapter
|
|
|
adapter.setData(numberList)
|
|
|
+ adapter.onNumClickListener = { bean: String, type: String ->
|
|
|
+ when (type) {
|
|
|
+ "0" -> {
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ "1" -> {
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ "2" -> {
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -68,14 +83,14 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
}
|
|
|
|
|
|
btnNext.setOnSingleClickListener {
|
|
|
-// if (judge()) {
|
|
|
- val bundle = bundleOf("questionId" to 22)
|
|
|
- val controller = Navigation.findNavController(it)
|
|
|
- controller.navigate(
|
|
|
- R.id.action_countFragment_to_recognitionImageFragment,
|
|
|
- bundle
|
|
|
- )
|
|
|
-// }
|
|
|
+ if (judge()) {
|
|
|
+ val bundle = bundleOf("questionId" to 22)
|
|
|
+ val controller = Navigation.findNavController(it)
|
|
|
+ controller.navigate(
|
|
|
+ R.id.action_countFragment_to_recognitionImageFragment,
|
|
|
+ bundle
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|