Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzhi
appzxhy
Commits
d106351d
Commit
d106351d
authored
Dec 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...启动页
parent
7060a3f2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
8 deletions
+43
-8
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+9
-7
MyApplication.kt
app/src/main/java/com/base/appzxhy/MyApplication.kt
+2
-1
StartActivity.kt
app/src/main/java/com/base/appzxhy/ui/start/StartActivity.kt
+8
-0
splash_bp.xml
app/src/main/res/drawable/splash_bp.xml
+9
-0
activity_start.xml
app/src/main/res/layout/activity_start.xml
+10
-0
themes.xml
app/src/main/res/values/themes.xml
+5
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
d106351d
...
@@ -2,12 +2,10 @@
...
@@ -2,12 +2,10 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
>
xmlns:tools=
"http://schemas.android.com/tools"
>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE_DATA_SYNC"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE_DATA_SYNC"
/>
<uses-permission
android:name=
"android.permission.POST_NOTIFICATIONS"
/>
<uses-permission
android:name=
"android.permission.POST_NOTIFICATIONS"
/>
<application
<application
android:name=
".MyApplication"
android:name=
".MyApplication"
android:allowBackup=
"true"
android:allowBackup=
"true"
...
@@ -20,14 +18,21 @@
...
@@ -20,14 +18,21 @@
android:theme=
"@style/Theme.LocalWeatherWhite"
android:theme=
"@style/Theme.LocalWeatherWhite"
tools:targetApi=
"31"
>
tools:targetApi=
"31"
>
<activity
<activity
android:name=
".ui.main.MainActivity"
android:name=
".ui.start.StartActivity"
android:exported=
"true"
>
android:exported=
"true"
android:launchMode=
"singleTask"
android:theme=
"@style/splash.theme"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".ui.main.MainActivity"
android:exported=
"true"
>
</activity>
<provider
<provider
android:name=
"androidx.core.content.FileProvider"
android:name=
"androidx.core.content.FileProvider"
...
@@ -39,21 +44,18 @@
...
@@ -39,21 +44,18 @@
android:resource=
"@xml/file_paths"
/>
android:resource=
"@xml/file_paths"
/>
</provider>
</provider>
<service
<service
android:name=
".service.StayJobService"
android:name=
".service.StayJobService"
android:exported=
"false"
android:exported=
"false"
android:foregroundServiceType=
"dataSync"
android:foregroundServiceType=
"dataSync"
android:permission=
"android.permission.BIND_JOB_SERVICE"
/>
android:permission=
"android.permission.BIND_JOB_SERVICE"
/>
<meta-data
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:value=
"ca-app-pub-3940256099942544~3347511713"
/>
android:value=
"ca-app-pub-3940256099942544~3347511713"
/>
<meta-data
<meta-data
android:name=
"com.facebook.sdk.ApplicationId"
android:name=
"com.facebook.sdk.ApplicationId"
android:value=
"@string/facebook_app_id"
/>
android:value=
"@string/facebook_app_id"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/base/appzxhy/MyApplication.kt
View file @
d106351d
...
@@ -20,6 +20,7 @@ import com.base.appzxhy.fcm.receiver.ScreenStatusReceiver
...
@@ -20,6 +20,7 @@ import com.base.appzxhy.fcm.receiver.ScreenStatusReceiver
import
com.base.appzxhy.helper.EventUtils
import
com.base.appzxhy.helper.EventUtils
import
com.base.appzxhy.helper.InstallHelps
import
com.base.appzxhy.helper.InstallHelps
import
com.base.appzxhy.helper.NewComUtils
import
com.base.appzxhy.helper.NewComUtils
import
com.base.appzxhy.ui.start.StartActivity
import
com.base.appzxhy.utils.ActivityManagerUtils
import
com.base.appzxhy.utils.ActivityManagerUtils
import
com.base.appzxhy.utils.AppPreferences
import
com.base.appzxhy.utils.AppPreferences
import
com.base.appzxhy.utils.LogEx
import
com.base.appzxhy.utils.LogEx
...
@@ -52,7 +53,7 @@ class MyApplication : Application() {
...
@@ -52,7 +53,7 @@ class MyApplication : Application() {
"adActivity"
,
"adActivity"
,
"AdActivity"
,
"AdActivity"
,
"AppLovinFullscreenActivity"
,
"AppLovinFullscreenActivity"
,
// Splash
Activity::class.java.simpleName,
Start
Activity
::
class
.
java
.
simpleName
,
// 返回前台时不跳转启动页的 activity
// 返回前台时不跳转启动页的 activity
)
)
}
}
...
...
app/src/main/java/com/base/appzxhy/ui/start/StartActivity.kt
0 → 100644
View file @
d106351d
package
com.base.appzxhy.ui.start
import
com.base.appzxhy.base.BaseActivity
import
com.base.appzxhy.databinding.ActivityStartBinding
class
StartActivity
:
BaseActivity
<
ActivityStartBinding
>(
ActivityStartBinding
::
inflate
)
{
}
\ No newline at end of file
app/src/main/res/drawable/splash_bp.xml
0 → 100644
View file @
d106351d
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<!-- <item android:drawable="@drawable/qidongyebg" />-->
<item
android:gravity=
"top|center_horizontal"
android:top=
"150dp"
>
<!-- <bitmap android:src="@mipmap/qdylogo" />-->
</item>
</layer-list>
\ No newline at end of file
app/src/main/res/layout/activity_start.xml
0 → 100644
View file @
d106351d
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".ui.start.StartActivity"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/themes.xml
View file @
d106351d
...
@@ -6,4 +6,9 @@
...
@@ -6,4 +6,9 @@
</style>
</style>
<style
name=
"Theme.LocalWeatherWhite"
parent=
"Base.Theme.LocalWeatherWhite"
/>
<style
name=
"Theme.LocalWeatherWhite"
parent=
"Base.Theme.LocalWeatherWhite"
/>
<style
name=
"splash.theme"
parent=
"Theme.AppCompat.DayNight.NoActionBar"
>
<item
name=
"android:windowBackground"
>
@drawable/splash_bp
</item>
<item
name=
"android:windowFullscreen"
>
false
</item>
</style>
</resources>
</resources>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment