将资源归纳到MogoLauncher.modules.mogo-module-common,通过gradle设置资源路径

This commit is contained in:
董宏宇
2021-08-09 16:37:07 +08:00
parent 7f72902737
commit 9cc8d3aa6e
43 changed files with 12 additions and 30 deletions

3
.idea/misc.xml generated
View File

@@ -13,6 +13,7 @@
<map>
<entry key="modules/mogo-module-adas/src/main/res/layout/dialog_adas_dispatch_remind.xml" value="0.1" />
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml" value="0.2953125" />
<entry key="modules/mogo-module-hmi/src/main/res/drawable/bg_waring_limiting_velocity.xml" value="0.2838541666666667" />
<entry key="modules/mogo-module-hmi/src/main/res/drawable/bg_waring_traffic_light_vr.xml" value="0.3359375" />
<entry key="modules/mogo-module-hmi/src/main/res/layout/fragment_warning.xml" value="0.3104166666666667" />
<entry key="modules/mogo-module-hmi/src/main/res/layout/notification_v2x_msg_vr.xml" value="0.28177083333333336" />
@@ -31,7 +32,7 @@
</map>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Embedded JDK" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="Embedded JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="VisualizationToolProject">

View File

@@ -26,6 +26,14 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
res.srcDirs = [
'src/main/res',// 默认资源目录
'src/main/res-warning'//预警资源目录
]
}
}
}
dependencies {

View File

@@ -1,10 +1,10 @@
package com.mogo.module.hmi.utils
import com.mogo.module.common.enum.WarningTypeEnum
import com.mogo.module.hmi.R
import com.mogo.module.common.R
/**
* @author xiaoyuzhou
* @author xiaoyuzhoukeyi
* @date 2021/8/6 11:04 上午
*/
internal object WarningUtils {

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0"
android:fromYDelta="-100%"
android:toXDelta="0"
android:interpolator="@android:anim/overshoot_interpolator"
android:toYDelta="0">
</translate>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0"
android:fromYDelta="0"
android:interpolator="@android:anim/anticipate_interpolator"
android:toXDelta="0"
android:toYDelta="-100%">
</translate>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="notice_dialog_anim_bottom2top">
<item name="android:windowEnterAnimation">@anim/notice_dialog_anim_top2bottom_in</item>
<item name="android:windowExitAnimation">@anim/notice_dialog_anim_top2bottom_out</item>
</style>
</resources>