Modify: 添加Common项目相关公共组件
This commit is contained in:
@ -3,10 +3,15 @@ package com.quyunshuo.main
|
||||
import android.os.Bundle
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
|
||||
/**
|
||||
* @Author: QuYunShuo
|
||||
* @Time: 2020/8/27
|
||||
* @Class: MainActivity
|
||||
* @Remark: 主界面Activity
|
||||
*/
|
||||
class MainActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
setContentView(R.layout.main_activity_main)
|
||||
}
|
||||
}
|
||||
@ -3,10 +3,10 @@
|
||||
package="com.quyunshuo.main">
|
||||
|
||||
<application
|
||||
android:name="com.quyunshuo.base.BaseApplication"
|
||||
android:name="com.quyunshuo.common.CommonApplication"
|
||||
android:allowBackup="true"
|
||||
android:label="@string/main_app_name"
|
||||
android:theme="@style/AppTheme">
|
||||
android:theme="@style/base_AppTheme">
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@ -6,4 +6,12 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Main"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user