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
b300b351
Commit
b300b351
authored
Nov 08, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化
parent
a56a1555
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
ConfigHelper.kt
...ava/com/base/pdfreaderallpdfreader/helper/ConfigHelper.kt
+0
-1
DocumentActivity.kt
...ase/pdfreaderallpdfreader/ui/document/DocumentActivity.kt
+6
-3
strings.xml
app/src/main/res/values/strings.xml
+1
-1
No files found.
app/src/main/java/com/base/pdfreaderallpdfreader/helper/ConfigHelper.kt
View file @
b300b351
...
...
@@ -27,7 +27,6 @@ object ConfigHelper {
const
val
openAdmobId
=
"/6499/example/app-open"
const
val
bannerAdmobId
=
"ca-app-pub-3940256099942544/9214581111"
val
noLoadingActivities
=
listOf
(
"full"
,
// 过滤全屏广告
"adActivity"
,
...
...
app/src/main/java/com/base/pdfreaderallpdfreader/ui/document/DocumentActivity.kt
View file @
b300b351
package
com.base.pdfreaderallpdfreader.ui.document
import
android.content.Intent
import
android.graphics.Color
import
android.text.Spannable
import
android.text.SpannableString
...
...
@@ -15,6 +16,7 @@ import com.base.pdfreaderallpdfreader.R
import
com.base.pdfreaderallpdfreader.base.BaseActivity
import
com.base.pdfreaderallpdfreader.bean.DocumentBean
import
com.base.pdfreaderallpdfreader.databinding.ActivityDocumentBinding
import
com.base.pdfreaderallpdfreader.ui.search.SearchActivity
import
com.base.pdfreaderallpdfreader.utils.BarUtils
class
DocumentActivity
:
BaseActivity
<
ActivityDocumentBinding
>()
{
...
...
@@ -34,16 +36,14 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() {
private
val
wordPage
:
DocumentFragment
by
lazy
{
DocumentFragment
(
DocumentBean
.
TYPE_WORD
)
}
private
val
excelPage
:
DocumentFragment
by
lazy
{
DocumentFragment
(
DocumentBean
.
TYPE_EXCEL
)
}
private
val
pptPage
:
DocumentFragment
by
lazy
{
DocumentFragment
(
DocumentBean
.
TYPE_PPT
)
}
var
initTab
:
Int
?
=
null
private
var
initTab
:
Int
?
=
null
private
val
fragments
by
lazy
{
mutableListOf
(
allPage
,
pdfPage
,
wordPage
,
excelPage
,
pptPage
)
...
...
@@ -157,6 +157,9 @@ class DocumentActivity : BaseActivity<ActivityDocumentBinding>() {
binding
.
flFanhui
.
setOnClickListener
{
onBackPressedDispatcher
.
onBackPressed
()
}
binding
.
ivSearch
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
SearchActivity
::
class
.
java
))
}
}
...
...
app/src/main/res/values/strings.xml
View file @
b300b351
...
...
@@ -15,7 +15,7 @@
<string
name=
"click_to_read_now"
>
Click to read now
</string>
<string
name=
"don_t_miss_important_documents"
>
Don\'t miss important documents
</string>
<string
name=
"view_now"
>
View Now
</string>
<!-- ///////////////////////////////////////
分割///////////////////////////////////////////////// -->
<!-- ///////////////////////////////////////分割///////////////////////////////////////////////// -->
<string
name=
"sunday"
>
Sunday
</string>
...
...
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