提交 020325f5 编写于 作者: A asure

可以打插件包,但是资源只能放在common库中,插件的R文件找不到

上级 bfe7621a
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:id="@+id/tv_commom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"/>
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
......@@ -758,12 +758,13 @@ int id titleDividerNoCustom 0x7f070082
int id title_template 0x7f070083
int id top 0x7f070084
int id topPanel 0x7f070085
int id uniform 0x7f070086
int id up 0x7f070087
int id useLogo 0x7f070088
int id withText 0x7f070089
int id wrap 0x7f07008a
int id wrap_content 0x7f07008b
int id tv_commom 0x7f070086
int id uniform 0x7f070087
int id up 0x7f070088
int id useLogo 0x7f070089
int id withText 0x7f07008a
int id wrap 0x7f07008b
int id wrap_content 0x7f07008c
int integer abc_config_activityDefaultDur 0x7f080000
int integer abc_config_activityShortDur 0x7f080001
int integer cancel_button_image_alpha 0x7f080002
......@@ -797,28 +798,27 @@ int layout abc_search_dropdown_item_icons_2line 0x7f090018
int layout abc_search_view 0x7f090019
int layout abc_select_dialog_material 0x7f09001a
int layout activity_main 0x7f09001b
int layout activity_plugin_one 0x7f09001c
int layout activity_plugin_two 0x7f09001d
int layout notification_action 0x7f09001e
int layout notification_action_tombstone 0x7f09001f
int layout notification_media_action 0x7f090020
int layout notification_media_cancel_action 0x7f090021
int layout notification_template_big_media 0x7f090022
int layout notification_template_big_media_custom 0x7f090023
int layout notification_template_big_media_narrow 0x7f090024
int layout notification_template_big_media_narrow_custom 0x7f090025
int layout notification_template_custom_big 0x7f090026
int layout notification_template_icon_group 0x7f090027
int layout notification_template_lines_media 0x7f090028
int layout notification_template_media 0x7f090029
int layout notification_template_media_custom 0x7f09002a
int layout notification_template_part_chronometer 0x7f09002b
int layout notification_template_part_time 0x7f09002c
int layout select_dialog_item_material 0x7f09002d
int layout select_dialog_multichoice_material 0x7f09002e
int layout select_dialog_singlechoice_material 0x7f09002f
int layout support_simple_spinner_dropdown_item 0x7f090030
int layout tooltip 0x7f090031
int layout commom_layout_view 0x7f09001c
int layout notification_action 0x7f09001d
int layout notification_action_tombstone 0x7f09001e
int layout notification_media_action 0x7f09001f
int layout notification_media_cancel_action 0x7f090020
int layout notification_template_big_media 0x7f090021
int layout notification_template_big_media_custom 0x7f090022
int layout notification_template_big_media_narrow 0x7f090023
int layout notification_template_big_media_narrow_custom 0x7f090024
int layout notification_template_custom_big 0x7f090025
int layout notification_template_icon_group 0x7f090026
int layout notification_template_lines_media 0x7f090027
int layout notification_template_media 0x7f090028
int layout notification_template_media_custom 0x7f090029
int layout notification_template_part_chronometer 0x7f09002a
int layout notification_template_part_time 0x7f09002b
int layout select_dialog_item_material 0x7f09002c
int layout select_dialog_multichoice_material 0x7f09002d
int layout select_dialog_singlechoice_material 0x7f09002e
int layout support_simple_spinner_dropdown_item 0x7f09002f
int layout tooltip 0x7f090030
int mipmap ic_launcher 0x7f0a0000
int mipmap ic_launcher_round 0x7f0a0001
int string abc_action_bar_home_description 0x7f0b0000
......
......@@ -10,7 +10,7 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".PluginOneActivity">
<activity android:name=".activitis.PluginOneActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
......
package com.jason.plugin.plugin_one
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.jason.plugin.commom.R
/**
* @author Liu
* @Date 2019-12-06
* @mobile 18711832023
*/
class TestCommonActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.commom_layout_view)
}
}
\ No newline at end of file
package com.jason.plugin.plugin_one
package com.jason.plugin.plugin_one.activitis
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
......@@ -8,6 +8,6 @@ class PluginOneActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_plugin_one)
setContentView(R.layout.commom_layout_view)
}
}
......@@ -7,6 +7,7 @@
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World! plugin one"
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
......@@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".PluginTwoActivity">
<activity android:name=".activitis.PluginTwoActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
......
package com.jason.plugin.plugin_two
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.jason.plugin.commom.R
/**
* @author Liu
* @Date 2019-12-06
* @mobile 18711832023
*/
class TestTwoCommonActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.commom_layout_view)
}
}
\ No newline at end of file
package com.jason.plugin.plugin_two
package com.jason.plugin.plugin_two.activitis
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.jason.plugin.commom.R
class PluginTwoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_plugin_two)
setContentView(R.layout.commom_layout_view)
}
}
......@@ -7,6 +7,7 @@
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_two"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World! plugin two"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册