Browse Source

1.添加测评module

王鹏鹏 2 years ago
parent
commit
e08f03033c

+ 5 - 0
baselib/src/main/java/com/yingyangfly/baselib/router/RouterUrlCommon.kt

@@ -50,4 +50,9 @@ object RouterUrlCommon {
      * 其他测评功能页面
      */
     const val otherEvaluation = "/other/evaluation"
+
+    /**
+     * 试题列表
+     */
+    const val questionList = "/question/list"
 }

+ 6 - 0
evaluation/src/main/AndroidManifest.xml

@@ -32,6 +32,12 @@
             android:configChanges="keyboardHidden|orientation|screenSize"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
+
+        <activity
+            android:name=".questionlist.QuestionListActivity"
+            android:configChanges="keyboardHidden|orientation|screenSize"
+            android:screenOrientation="landscape"
+            android:windowSoftInputMode="adjustResize|adjustPan" />
     </application>
 
 </manifest>

+ 33 - 0
evaluation/src/main/java/com/yingyangfly/evaluation/questionlist/QuestionListActivity.kt

@@ -0,0 +1,33 @@
+package com.yingyangfly.evaluation.questionlist
+
+import android.view.MotionEvent
+import android.view.View
+import com.alibaba.android.arouter.facade.annotation.Route
+import com.yingyangfly.baselib.base.BaseActivity
+import com.yingyangfly.baselib.router.RouterUrlCommon
+import com.yingyangfly.evaluation.databinding.ActivityQuestionListBinding
+
+/**
+ * 试题列表
+ */
+@Route(path = RouterUrlCommon.questionList)
+class QuestionListActivity : BaseActivity<ActivityQuestionListBinding>(), View.OnTouchListener {
+
+    override fun initViews() {
+
+    }
+
+    override fun initListener() {
+
+    }
+
+    override fun initData() {
+
+    }
+
+    override fun onTouch(v: View, event: MotionEvent): Boolean {
+        TODO("Not yet implemented")
+    }
+
+
+}

+ 6 - 0
evaluation/src/main/manifest/AndroidManifest.xml

@@ -33,6 +33,12 @@
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
+        <activity
+            android:name=".questionlist.QuestionListActivity"
+            android:configChanges="keyboardHidden|orientation|screenSize"
+            android:screenOrientation="landscape"
+            android:windowSoftInputMode="adjustResize|adjustPan" />
+
     </application>
 
 </manifest>

+ 13 - 0
evaluation/src/main/res/layout/activity_question_list.xml

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
+    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.constraintlayout.widget.ConstraintLayout>
+
+</layout>