Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
pdf all reader
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
wanglei
pdf all reader
Commits
65845eb0
Commit
65845eb0
authored
Nov 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...适配Android12启动页
parent
806b8ef9
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
142 additions
and
37 deletions
+142
-37
build.gradle.kts
app/build.gradle.kts
+4
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+20
-8
NotificationUiUtil.kt
.../com/base/pdfreaderallpdfreader/fcm/NotificationUiUtil.kt
+2
-2
ConfigHelper.kt
...ava/com/base/pdfreaderallpdfreader/helper/ConfigHelper.kt
+2
-2
MyApplication.kt
...va/com/base/pdfreaderallpdfreader/helper/MyApplication.kt
+2
-2
DocumentFragment.kt
...ase/pdfreaderallpdfreader/ui/document/DocumentFragment.kt
+5
-1
MyStartActivity.kt
...m/base/pdfreaderallpdfreader/ui/splash/MyStartActivity.kt
+2
-7
SplashViewModel.kt
...m/base/pdfreaderallpdfreader/ui/splash/SplashViewModel.kt
+1
-2
SystemStartActivity.kt
...se/pdfreaderallpdfreader/ui/splash/SystemStartActivity.kt
+43
-0
ShortcutUtils.kt
...ava/com/base/pdfreaderallpdfreader/utils/ShortcutUtils.kt
+4
-4
logo.png
app/src/main/res/drawable-xxhdpi/logo.png
+0
-0
logo_corners.png
app/src/main/res/drawable-xxhdpi/logo_corners.png
+0
-0
splash_bp.xml
app/src/main/res/drawable/splash_bp.xml
+4
-6
activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+1
-1
activity_system_start.xml
app/src/main/res/layout/activity_system_start.xml
+10
-0
themes.xml
app/src/main/res/values-v29/themes.xml
+9
-0
themes.xml
app/src/main/res/values-v31/themes.xml
+17
-0
themes.xml
app/src/main/res/values/themes.xml
+16
-2
No files found.
app/build.gradle.kts
View file @
65845eb0
...
@@ -18,6 +18,8 @@ android {
...
@@ -18,6 +18,8 @@ android {
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
=
"androidx.test.runner.AndroidJUnitRunner"
setProperty
(
"archivesBaseName"
,
"pdf-v$versionName-$versionCode"
)
signingConfigs
{
signingConfigs
{
create
(
"release"
)
{
create
(
"release"
)
{
//E6:A2:DD:0A:E6:73:22:32:4E:98:08:78:73:29:01:C4:8D:A0:38:DB:D8:B2:DD:B9:AC:55:69:B2:6B:DF:B0:B4
//E6:A2:DD:0A:E6:73:22:32:4E:98:08:78:73:29:01:C4:8D:A0:38:DB:D8:B2:DD:B9:AC:55:69:B2:6B:DF:B0:B4
...
@@ -132,4 +134,6 @@ dependencies {
...
@@ -132,4 +134,6 @@ dependencies {
//mintegral
//mintegral
implementation
(
"com.reyun.solar.engine.oversea:solar-engine-core:1.2.8.3"
)
implementation
(
"com.reyun.solar.engine.oversea:solar-engine-core:1.2.8.3"
)
implementation
(
"androidx.core:core-splashscreen:1.0.0-beta02"
)
}
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
65845eb0
...
@@ -29,12 +29,15 @@
...
@@ -29,12 +29,15 @@
android:roundIcon=
"@mipmap/logo"
android:roundIcon=
"@mipmap/logo"
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.PdfReaderAllPdfReader"
android:theme=
"@style/Theme.PdfReaderAllPdfReader"
tools:targetApi=
"3
1
"
>
tools:targetApi=
"3
4
"
>
<activity
<activity
android:theme=
"@style/splash.theme"
android:name=
".ui.splash.SystemStartActivity"
android:name=
".ui.splash.SplashActivity"
android:exported=
"true"
android:exported=
"true"
>
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
android:theme=
"@style/Theme.App.Starting"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
>
<intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
...
@@ -42,17 +45,28 @@
...
@@ -42,17 +45,28 @@
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".ui.splash.MyStartActivity"
android:exported=
"true"
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
android:theme=
"@style/splash.theme"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
>
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>
<activity
<activity
android:name=
".ui.main.MainActivity"
android:name=
".ui.main.MainActivity"
android:exported=
"false"
android:exported=
"false"
android:theme=
"@style/Theme.PdfReaderAllPdfReader.NoActionBar"
/>
android:theme=
"@style/Theme.PdfReaderAllPdfReader.NoActionBar"
/>
<activity
<activity
android:name=
".ui.language.LanguageActivity"
android:name=
".ui.language.LanguageActivity"
android:exported=
"false"
android:exported=
"false"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
<activity
android:name=
".ui.pdf.PdfActivity"
android:name=
".ui.pdf.PdfActivity"
android:exported=
"false"
android:exported=
"false"
...
@@ -88,7 +102,6 @@
...
@@ -88,7 +102,6 @@
android:exported=
"false"
android:exported=
"false"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
<activity
android:name=
".ui.pdf.PdfSelectActivity"
android:name=
".ui.pdf.PdfSelectActivity"
android:exported=
"false"
android:exported=
"false"
...
@@ -127,7 +140,6 @@
...
@@ -127,7 +140,6 @@
<action
android:name=
"com.google.firebase.MESSAGING_EVENT"
/>
<action
android:name=
"com.google.firebase.MESSAGING_EVENT"
/>
</intent-filter>
</intent-filter>
</service>
</service>
<service
<service
android:name=
".service.StayJobService"
android:name=
".service.StayJobService"
android:exported=
"false"
android:exported=
"false"
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/fcm/NotificationUiUtil.kt
View file @
65845eb0
...
@@ -34,7 +34,7 @@ import com.base.pdfreaderallpdfreader.fcm.PopupConstObject.popup_status
...
@@ -34,7 +34,7 @@ import com.base.pdfreaderallpdfreader.fcm.PopupConstObject.popup_status
import
com.base.pdfreaderallpdfreader.fcm.PopupConstObject.popup_timer_interval
import
com.base.pdfreaderallpdfreader.fcm.PopupConstObject.popup_timer_interval
import
com.base.pdfreaderallpdfreader.helper.EventUtils
import
com.base.pdfreaderallpdfreader.helper.EventUtils
import
com.base.pdfreaderallpdfreader.helper.MyApplication
import
com.base.pdfreaderallpdfreader.helper.MyApplication
import
com.base.pdfreaderallpdfreader.ui.splash.
Splash
Activity
import
com.base.pdfreaderallpdfreader.ui.splash.
MyStart
Activity
import
com.base.pdfreaderallpdfreader.utils.AppPreferences
import
com.base.pdfreaderallpdfreader.utils.AppPreferences
import
com.base.pdfreaderallpdfreader.utils.LogEx
import
com.base.pdfreaderallpdfreader.utils.LogEx
import
java.text.SimpleDateFormat
import
java.text.SimpleDateFormat
...
@@ -150,7 +150,7 @@ object NotificationUiUtil {
...
@@ -150,7 +150,7 @@ object NotificationUiUtil {
fun
setActionNotification
(
context
:
Context
,
actionId
:
String
)
{
fun
setActionNotification
(
context
:
Context
,
actionId
:
String
)
{
val
bigRemoteViews
=
RemoteViews
(
MyApplication
.
context
.
packageName
,
R
.
layout
.
notification_message
)
val
bigRemoteViews
=
RemoteViews
(
MyApplication
.
context
.
packageName
,
R
.
layout
.
notification_message
)
val
smallRemoteViews
=
RemoteViews
(
MyApplication
.
context
.
packageName
,
R
.
layout
.
notification_message
)
val
smallRemoteViews
=
RemoteViews
(
MyApplication
.
context
.
packageName
,
R
.
layout
.
notification_message
)
val
intent
=
Intent
(
context
,
Splash
Activity
::
class
.
java
)
val
intent
=
Intent
(
context
,
MyStart
Activity
::
class
.
java
)
intent
.
putExtra
(
"actionId"
,
actionId
)
intent
.
putExtra
(
"actionId"
,
actionId
)
when
(
actionId
)
{
when
(
actionId
)
{
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/helper/ConfigHelper.kt
View file @
65845eb0
package
com.base.pdfreaderallpdfreader.helper
package
com.base.pdfreaderallpdfreader.helper
import
com.base.pdfreaderallpdfreader.ui.splash.
Splash
Activity
import
com.base.pdfreaderallpdfreader.ui.splash.
MyStart
Activity
object
ConfigHelper
{
object
ConfigHelper
{
...
@@ -32,7 +32,7 @@ object ConfigHelper {
...
@@ -32,7 +32,7 @@ object ConfigHelper {
"adActivity"
,
"adActivity"
,
"AdActivity"
,
"AdActivity"
,
"AppLovinFullscreenActivity"
,
"AppLovinFullscreenActivity"
,
Splash
Activity
::
class
.
java
.
simpleName
,
MyStart
Activity
::
class
.
java
.
simpleName
,
"GmsDocumentScanningDelegateActivity"
,
"GmsDocumentScanningDelegateActivity"
,
// 返回前台时不跳转启动页的 activity
// 返回前台时不跳转启动页的 activity
)
)
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/helper/MyApplication.kt
View file @
65845eb0
...
@@ -10,7 +10,7 @@ import com.base.pdfreaderallpdfreader.fcm.FCMManager
...
@@ -10,7 +10,7 @@ import com.base.pdfreaderallpdfreader.fcm.FCMManager
import
com.base.pdfreaderallpdfreader.fcm.ScreenStatusReceiver
import
com.base.pdfreaderallpdfreader.fcm.ScreenStatusReceiver
import
com.base.pdfreaderallpdfreader.helper.WeatherUtils.requestWeatherData
import
com.base.pdfreaderallpdfreader.helper.WeatherUtils.requestWeatherData
import
com.base.pdfreaderallpdfreader.service.StayJobService.Companion.startJob
import
com.base.pdfreaderallpdfreader.service.StayJobService.Companion.startJob
import
com.base.pdfreaderallpdfreader.ui.splash.
Splash
Activity
import
com.base.pdfreaderallpdfreader.ui.splash.
MyStart
Activity
import
com.base.pdfreaderallpdfreader.utils.ActivityManagerUtils
import
com.base.pdfreaderallpdfreader.utils.ActivityManagerUtils
import
com.base.pdfreaderallpdfreader.utils.AppPreferences
import
com.base.pdfreaderallpdfreader.utils.AppPreferences
import
com.base.pdfreaderallpdfreader.utils.LogEx
import
com.base.pdfreaderallpdfreader.utils.LogEx
...
@@ -167,7 +167,7 @@ class MyApplication : Application() {
...
@@ -167,7 +167,7 @@ class MyApplication : Application() {
if
(
flag
)
{
if
(
flag
)
{
topActivity
?.
startActivity
(
topActivity
?.
startActivity
(
Intent
(
Intent
(
topActivity
,
Splash
Activity
::
class
.
java
topActivity
,
MyStart
Activity
::
class
.
java
).
apply
{
).
apply
{
putExtra
(
"isHotLaunch"
,
true
)
putExtra
(
"isHotLaunch"
,
true
)
putExtra
(
"type"
,
-
1
)
putExtra
(
"type"
,
-
1
)
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/ui/document/DocumentFragment.kt
View file @
65845eb0
...
@@ -65,8 +65,12 @@ class DocumentFragment() : Fragment() {
...
@@ -65,8 +65,12 @@ class DocumentFragment() : Fragment() {
}
}
}
}
adapter
?.
moreAction
=
{
item
:
DocumentBean
->
adapter
?.
moreAction
=
{
item
:
DocumentBean
->
if
(
item
.
type
==
TYPE_PDF
)
{
}
else
{
requireContext
().
showDocumentHomeMoreDialog
(
item
,
this
)
requireContext
().
showDocumentHomeMoreDialog
(
item
,
this
)
}
}
}
binding
.
rv
.
adapter
=
adapter
binding
.
rv
.
adapter
=
adapter
binding
.
rv
.
setOnScrollChangeListener
{
v
,
scrollX
,
scrollY
,
oldScrollX
,
oldScrollY
->
binding
.
rv
.
setOnScrollChangeListener
{
v
,
scrollX
,
scrollY
,
oldScrollX
,
oldScrollY
->
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/ui/splash/
Splash
Activity.kt
→
app/src/main/java/com/base/pdfreaderallpdfreader/ui/splash/
MyStart
Activity.kt
View file @
65845eb0
...
@@ -22,13 +22,11 @@ import com.base.pdfreaderallpdfreader.bean.ConstObject.isFirstStart
...
@@ -22,13 +22,11 @@ import com.base.pdfreaderallpdfreader.bean.ConstObject.isFirstStart
import
com.base.pdfreaderallpdfreader.databinding.ActivitySplashBinding
import
com.base.pdfreaderallpdfreader.databinding.ActivitySplashBinding
import
com.base.pdfreaderallpdfreader.fcm.NotificationHoverUtils
import
com.base.pdfreaderallpdfreader.fcm.NotificationHoverUtils
import
com.base.pdfreaderallpdfreader.helper.EventUtils
import
com.base.pdfreaderallpdfreader.helper.EventUtils
import
com.base.pdfreaderallpdfreader.helper.MyApplication
import
com.base.pdfreaderallpdfreader.helper.UmpUtils
import
com.base.pdfreaderallpdfreader.helper.UmpUtils
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.requestUMP
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.requestUMP
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.umpCalled
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.umpCalled
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.umpCanAd
import
com.base.pdfreaderallpdfreader.helper.UmpUtils.umpCanAd
import
com.base.pdfreaderallpdfreader.helper.WeatherUtils
import
com.base.pdfreaderallpdfreader.helper.WeatherUtils
import
com.base.pdfreaderallpdfreader.ui.language.LanguageActivity
import
com.base.pdfreaderallpdfreader.ui.main.MainActivity
import
com.base.pdfreaderallpdfreader.ui.main.MainActivity
import
com.base.pdfreaderallpdfreader.utils.BarUtils
import
com.base.pdfreaderallpdfreader.utils.BarUtils
import
com.base.pdfreaderallpdfreader.utils.LogEx
import
com.base.pdfreaderallpdfreader.utils.LogEx
...
@@ -39,8 +37,7 @@ import java.util.Calendar
...
@@ -39,8 +37,7 @@ import java.util.Calendar
import
java.util.Locale
import
java.util.Locale
import
java.util.concurrent.atomic.AtomicBoolean
import
java.util.concurrent.atomic.AtomicBoolean
@SuppressLint
(
"CustomSplashScreen"
)
class
MyStartActivity
:
BaseActivity
<
ActivitySplashBinding
>()
{
class
SplashActivity
:
BaseActivity
<
ActivitySplashBinding
>()
{
private
val
TAG
=
"SplashActivity"
private
val
TAG
=
"SplashActivity"
private
lateinit
var
splashViewModel
:
SplashViewModel
private
lateinit
var
splashViewModel
:
SplashViewModel
...
@@ -61,9 +58,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
...
@@ -61,9 +58,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
Manifest
.
permission
.
POST_NOTIFICATIONS
Manifest
.
permission
.
POST_NOTIFICATIONS
)
)
}
else
{
}
else
{
registerForActivityResult
(
ActivityResultContracts
.
RequestPermission
())
{}.
launch
(
Manifest
.
permission
.
POST_NOTIFICATIONS
)
}
}
actionId
=
intent
.
extras
?.
getString
(
"actionId"
)
?:
""
actionId
=
intent
.
extras
?.
getString
(
"actionId"
)
?:
""
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/ui/splash/SplashViewModel.kt
View file @
65845eb0
package
com.base.pdfreaderallpdfreader.ui.splash
package
com.base.pdfreaderallpdfreader.ui.splash
import
android.content.ContentValues.TAG
import
android.content.ContentValues.TAG
import
androidx.lifecycle.LifecycleCoroutineScope
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.viewModelScope
import
androidx.lifecycle.viewModelScope
import
com.base.pdfreaderallpdfreader.ads.AdmobHelper.open_ad_loading
import
com.base.pdfreaderallpdfreader.ads.AdmobHelper.open_ad_loading
...
@@ -22,7 +21,7 @@ class SplashViewModel : ViewModel() {
...
@@ -22,7 +21,7 @@ class SplashViewModel : ViewModel() {
/**
/**
* 超时跳转
* 超时跳转
*/
*/
fun
startJumpJob
(
splashActivity
:
Splash
Activity
)
{
fun
startJumpJob
(
splashActivity
:
MyStart
Activity
)
{
if
(
ConstObject
.
ifAgreePrivacy
&&
startJumpJob
)
{
if
(
ConstObject
.
ifAgreePrivacy
&&
startJumpJob
)
{
if
(
jumpJob
==
null
)
{
if
(
jumpJob
==
null
)
{
val
startTime
=
System
.
currentTimeMillis
()
val
startTime
=
System
.
currentTimeMillis
()
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/ui/splash/SystemStartActivity.kt
0 → 100644
View file @
65845eb0
package
com.base.pdfreaderallpdfreader.ui.splash
import
android.content.Intent
import
android.os.Bundle
import
androidx.appcompat.app.AppCompatActivity
import
androidx.core.splashscreen.SplashScreen
import
androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import
androidx.core.splashscreen.SplashScreenViewProvider
import
java.util.concurrent.atomic.AtomicBoolean
/**
* 适配官方启动页
* https://cloud.tencent.com/developer/ask/sof/915280
*/
class
SystemStartActivity
:
AppCompatActivity
()
{
// 数据
private
var
mKeepOnAtomicBool
=
AtomicBoolean
(
true
)
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
// 初始化操作(必须放在setContentView()之前)
val
splashScreen
=
installSplashScreen
()
super
.
onCreate
(
savedInstanceState
)
// setContentView(可以省略)
// setContentView(R.layout.activity_system_start)
// 每次UI绘制前,会判断 Splash 是否有必要继续展示在屏幕上;直到不再满足条件时,隐藏Splash。
splashScreen
.
setKeepOnScreenCondition
{
mKeepOnAtomicBool
.
get
()
}
// Splash展示完毕的监听方法
splashScreen
.
setOnExitAnimationListener
(
object
:
SplashScreen
.
OnExitAnimationListener
{
override
fun
onSplashScreenExit
(
splashScreenViewProvider
:
SplashScreenViewProvider
)
{
startActivity
(
Intent
(
this
@SystemStartActivity
,
MyStartActivity
::
class
.
java
))
this
@SystemStartActivity
.
finish
()
overridePendingTransition
(
0
,
0
)
mKeepOnAtomicBool
.
compareAndSet
(
true
,
false
)
}
})
}
}
\ No newline at end of file
app/src/main/java/com/base/pdfreaderallpdfreader/utils/ShortcutUtils.kt
View file @
65845eb0
...
@@ -8,7 +8,7 @@ import android.graphics.drawable.Icon
...
@@ -8,7 +8,7 @@ import android.graphics.drawable.Icon
import
android.os.Build
import
android.os.Build
import
com.base.pdfreaderallpdfreader.R
import
com.base.pdfreaderallpdfreader.R
import
com.base.pdfreaderallpdfreader.bean.ConstObject
import
com.base.pdfreaderallpdfreader.bean.ConstObject
import
com.base.pdfreaderallpdfreader.ui.splash.
Splash
Activity
import
com.base.pdfreaderallpdfreader.ui.splash.
MyStart
Activity
object
ShortcutUtils
{
object
ShortcutUtils
{
...
@@ -23,7 +23,7 @@ object ShortcutUtils {
...
@@ -23,7 +23,7 @@ object ShortcutUtils {
val
shortcut1
=
ShortcutInfo
.
Builder
(
this
,
"11111"
)
val
shortcut1
=
ShortcutInfo
.
Builder
(
this
,
"11111"
)
.
setShortLabel
(
"Scan Pdf"
)
.
setShortLabel
(
"Scan Pdf"
)
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_scan_short
))
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_scan_short
))
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
Splash
Activity
::
class
.
java
).
apply
{
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
MyStart
Activity
::
class
.
java
).
apply
{
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_SCAN_PDF
)
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_SCAN_PDF
)
})
})
.
build
()
.
build
()
...
@@ -31,7 +31,7 @@ object ShortcutUtils {
...
@@ -31,7 +31,7 @@ object ShortcutUtils {
val
shortcut2
=
ShortcutInfo
.
Builder
(
this
,
"22222"
)
val
shortcut2
=
ShortcutInfo
.
Builder
(
this
,
"22222"
)
.
setShortLabel
(
"Split Pdf"
)
.
setShortLabel
(
"Split Pdf"
)
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_split_short
))
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_split_short
))
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
Splash
Activity
::
class
.
java
).
apply
{
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
MyStart
Activity
::
class
.
java
).
apply
{
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_SPLIT_PDF
)
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_SPLIT_PDF
)
})
})
.
build
()
.
build
()
...
@@ -39,7 +39,7 @@ object ShortcutUtils {
...
@@ -39,7 +39,7 @@ object ShortcutUtils {
val
shortcut3
=
ShortcutInfo
.
Builder
(
this
,
"33333"
)
val
shortcut3
=
ShortcutInfo
.
Builder
(
this
,
"33333"
)
.
setShortLabel
(
"Merge Pdf"
)
.
setShortLabel
(
"Merge Pdf"
)
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_merge_short
))
.
setIcon
(
Icon
.
createWithResource
(
this
,
R
.
mipmap
.
pdf_merge_short
))
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
Splash
Activity
::
class
.
java
).
apply
{
.
setIntent
(
Intent
(
Intent
.
ACTION_MAIN
,
null
,
this
,
MyStart
Activity
::
class
.
java
).
apply
{
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_MERGE_PDF
)
putExtra
(
"actionId"
,
ConstObject
.
SHORTCUT_MERGE_PDF
)
})
})
.
build
()
.
build
()
...
...
app/src/main/res/drawable-xxhdpi/logo.png
0 → 100644
View file @
65845eb0
36.1 KB
app/src/main/res/drawable-xxhdpi/logo_corners.png
0 → 100644
View file @
65845eb0
3.3 KB
app/src/main/res/drawable/splash_bp.xml
View file @
65845eb0
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@mipmap/qdyebg"
/>
<item
android:drawable=
"@color/white"
/>
<!-- <item-->
<item
android:gravity=
"top|center_horizontal"
>
<!-- android:gravity="top|center_horizontal"-->
<bitmap
android:src=
"@mipmap/qdyebg"
/>
<!-- android:top="220dp">-->
</item>
<!-- <bitmap android:src="" />-->
<!-- </item>-->
</layer-list>
</layer-list>
\ No newline at end of file
app/src/main/res/layout/activity_splash.xml
View file @
65845eb0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/splash_bp"
android:background=
"@drawable/splash_bp"
tools:context=
".ui.splash.
Splash
Activity"
>
tools:context=
".ui.splash.
MyStart
Activity"
>
<ImageView
<ImageView
android:id=
"@+id/iv_logo"
android:id=
"@+id/iv_logo"
...
...
app/src/main/res/layout/activity_system_start.xml
0 → 100644
View file @
65845eb0
<?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.splash.SystemStartActivity"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values-v29/themes.xml
0 → 100644
View file @
65845eb0
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name=
"splash.theme"
parent=
"Theme.AppCompat.DayNight.NoActionBar"
>
<item
name=
"android:windowBackground"
>
@drawable/splash_bp
</item>
<item
name=
"android:windowFullscreen"
>
false
</item>
<item
name=
"android:forceDarkAllowed"
>
false
</item>
</style>
</resources>
\ No newline at end of file
app/src/main/res/values-v31/themes.xml
0 → 100644
View file @
65845eb0
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- <style name="Theme.App.Starting" parent="Theme.SplashScreen">-->
<!-- <!–启动画面背景颜色–>-->
<!-- <item name="windowSplashScreenBackground">@color/black</item>-->
<!-- <!– 启动画面icon图标:这里可以是图片、帧动画等–>-->
<!-- <item name="windowSplashScreenAnimatedIcon">@drawable/logo_corners</item>-->
<!-- <!– <item name="windowSplashScreenIconBackgroundColor">@color/splashscreen_icon_bg</item>–>-->
<!-- <!– icon动画在关闭之前显示的时长:最长时间为1000毫秒–>-->
<!-- <item name="windowSplashScreenAnimationDuration">1000</item>-->
<!-- <!– 启动画面底部的 Brand 图片–>-->
<!-- <item name="android:windowSplashScreenBrandingImage">@drawable/logo_corners</item>-->
<!-- <!– Splash退出后的主题–>-->
<!-- <item name="postSplashScreenTheme">@style/Theme.PdfReaderAllPdfReader</item>-->
<!-- </style>-->
</resources>
\ No newline at end of file
app/src/main/res/values/themes.xml
View file @
65845eb0
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<!-- Base application theme. -->
<!-- Base application theme. -->
<style
name=
"Base.Theme.PdfReaderAllPdfReader"
parent=
"Theme.
Material3
.DayNight.NoActionBar"
>
<style
name=
"Base.Theme.PdfReaderAllPdfReader"
parent=
"Theme.
AppCompat
.DayNight.NoActionBar"
>
<!-- Customize your light theme here. -->
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
</style>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</style>
</style>
<style
name=
"Theme.PdfReaderAllPdfReader.PopupOverlay"
parent=
"ThemeOverlay.AppCompat.Light"
/>
<style
name=
"Theme.PdfReaderAllPdfReader.PopupOverlay"
parent=
"ThemeOverlay.AppCompat.Light"
/>
<style
name=
"BottomSheetDialog"
parent=
"Theme.Design.Light.BottomSheetDialog"
>
<style
name=
"BottomSheetDialog"
parent=
"Theme.Design.Light.BottomSheetDialog"
>
<item
name=
"bottomSheetStyle"
>
@style/bottomSheetStyleWrapper
</item>
<item
name=
"bottomSheetStyle"
>
@style/bottomSheetStyleWrapper
</item>
...
@@ -32,5 +32,19 @@
...
@@ -32,5 +32,19 @@
<item
name=
"android:background"
>
@android:color/transparent
</item>
<item
name=
"android:background"
>
@android:color/transparent
</item>
</style>
</style>
<style
name=
"Theme.App.Starting"
parent=
"Theme.SplashScreen"
>
<!--启动画面背景颜色-->
<item
name=
"windowSplashScreenBackground"
>
@color/white
</item>
<!-- <item name="android:windowBackground">@drawable/splash_bp</item>-->
<!-- 启动画面icon图标:这里可以是图片、帧动画等-->
<item
name=
"windowSplashScreenAnimatedIcon"
>
@drawable/logo
</item>
<item
name=
"splashScreenIconSize"
>
50dp
</item>
<item
name=
"windowSplashScreenIconBackgroundColor"
>
@android:color/transparent
</item>
<!-- icon动画在关闭之前显示的时长:最长时间为1000毫秒-->
<item
name=
"windowSplashScreenAnimationDuration"
>
100
</item>
<!-- Splash退出后的主题-->
<item
name=
"postSplashScreenTheme"
>
@style/Theme.PdfReaderAllPdfReader
</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