Quellcode durchsuchen

1.添加电视端项目首页

王鹏鹏 vor 2 Jahren
Ursprung
Commit
0491128a14

+ 6 - 5
home/src/main/AndroidManifest.xml

@@ -21,35 +21,36 @@
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationResultActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationHistoryActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
         <activity
             android:name="com.yingyangfly.home.evaluation.BindingEvaluationActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
         <activity
             android:name="com.yingyangfly.home.evaluation.ReviewResultDetailActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
+            android:screenOrientation="landscape"
+            android:windowSoftInputMode="adjustResize|adjustPan" />
+
+        <activity
+            android:name="com.yingyangfly.home.hospital.HospitalActivity"
+            android:configChanges="keyboardHidden|orientation|screenSize"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 

+ 6 - 0
home/src/main/java/com/yingyangfly/home/hospital/HospitalActivity.kt

@@ -0,0 +1,6 @@
+package com.yingyangfly.home.hospital
+
+import androidx.appcompat.app.AppCompatActivity
+
+class HospitalActivity : AppCompatActivity() {
+}

+ 9 - 13
home/src/main/manifest/AndroidManifest.xml

@@ -11,50 +11,46 @@
     <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
 
     <application>
+        <activity
+            android:name="com.yingyangfly.home.hospital.HospitalActivity"
+            android:configChanges="keyboardHidden|orientation|screenSize"
+            android:screenOrientation="landscape"
+            android:windowSoftInputMode="adjustResize|adjustPan" />
         <activity
             android:name="com.yingyangfly.home.activity.HomeActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
             android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
-
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
-
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationResultActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
-
         <activity
             android:name="com.yingyangfly.home.evaluation.EvaluationHistoryActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
-
         <activity
             android:name="com.yingyangfly.home.evaluation.BindingEvaluationActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
-
         <activity
             android:name="com.yingyangfly.home.evaluation.ReviewResultDetailActivity"
             android:configChanges="keyboardHidden|orientation|screenSize"
-            android:launchMode="singleTask"
             android:screenOrientation="landscape"
             android:windowSoftInputMode="adjustResize|adjustPan" />
 
-        <service android:name="com.yingyangfly.home.updater.service.DownloadService"
-            android:exported="false"/>
+        <service
+            android:name="com.yingyangfly.home.updater.service.DownloadService"
+            android:exported="false" />
 
         <provider
             android:name="com.yingyangfly.home.updater.provider.AppUpdaterFileProvider"
@@ -63,7 +59,7 @@
             android:grantUriPermissions="true">
             <meta-data
                 android:name="android.support.FILE_PROVIDER_PATHS"
-                android:resource="@xml/app_updater_paths"/>
+                android:resource="@xml/app_updater_paths" />
         </provider>
     </application>
 

+ 13 - 0
home/src/main/res/layout/activity_hospital.xml

@@ -0,0 +1,13 @@
+<?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">
+
+    <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+
+    </androidx.constraintlayout.widget.ConstraintLayout>
+
+</layout>