Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Reader 2
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 Reader 2
Commits
b2e73cc5
Commit
b2e73cc5
authored
Oct 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...手动混淆...
parent
05b0aaa6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ASDumentAdapter.kt
.../main/java/com/base/pdfreader2/ui/main/ASDumentAdapter.kt
+4
-4
activity_main_dsda.xml
app/src/main/res/layout/activity_main_dsda.xml
+1
-1
activity_vvf_sesdlect.xml
app/src/main/res/layout/activity_vvf_sesdlect.xml
+1
-1
item_lllument.xml
app/src/main/res/layout/item_lllument.xml
+0
-0
No files found.
app/src/main/java/com/base/pdfreader2/ui/main/ASDumentAdapter.kt
View file @
b2e73cc5
...
@@ -13,7 +13,7 @@ import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PDF
...
@@ -13,7 +13,7 @@ import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PDF
import
com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PPT
import
com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PPT
import
com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_WORD
import
com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_WORD
import
com.base.pdfreader2.databinding.ItemBbbodBinding
import
com.base.pdfreader2.databinding.ItemBbbodBinding
import
com.base.pdfreader2.databinding.Item
Doc
umentBinding
import
com.base.pdfreader2.databinding.Item
Lll
umentBinding
import
com.base.pdfreader2.utils.SSDtlinExt.toFormatSize
import
com.base.pdfreader2.utils.SSDtlinExt.toFormatSize
import
com.base.pdfreader2.utils.SSDtlinExt.toFormatTime
import
com.base.pdfreader2.utils.SSDtlinExt.toFormatTime
import
com.base.pdfreader2.utils.dasdmlEx.inflate
import
com.base.pdfreader2.utils.dasdmlEx.inflate
...
@@ -38,7 +38,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
...
@@ -38,7 +38,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
val
binding
=
ItemBbbodBinding
.
bind
(
holder
.
itemView
)
val
binding
=
ItemBbbodBinding
.
bind
(
holder
.
itemView
)
AveUtils
.
showNativeAd
(
null
,
binding
.
flAd
,
R
.
layout
.
layout_admob_document
)
AveUtils
.
showNativeAd
(
null
,
binding
.
flAd
,
R
.
layout
.
layout_admob_document
)
}
else
{
}
else
{
val
binding
=
Item
Doc
umentBinding
.
bind
(
holder
.
itemView
)
val
binding
=
Item
Lll
umentBinding
.
bind
(
holder
.
itemView
)
changeIcon
(
item
,
binding
)
changeIcon
(
item
,
binding
)
val
file
=
File
(
item
.
path
)
val
file
=
File
(
item
.
path
)
runCatching
{
runCatching
{
...
@@ -123,7 +123,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
...
@@ -123,7 +123,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
}
}
fun
changeIcon
(
item
:
DocumeewewntBean
,
binding
:
Item
Doc
umentBinding
)
{
fun
changeIcon
(
item
:
DocumeewewntBean
,
binding
:
Item
Lll
umentBinding
)
{
if
(
item
.
type
==
TYPE_PDF
)
{
if
(
item
.
type
==
TYPE_PDF
)
{
if
(
item
.
state
==
0
)
{
if
(
item
.
state
==
0
)
{
binding
.
iv
.
setImageResource
(
R
.
mipmap
.
pdficon
)
binding
.
iv
.
setImageResource
(
R
.
mipmap
.
pdficon
)
...
@@ -150,7 +150,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
...
@@ -150,7 +150,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
override
fun
onCreateViewHolder
(
context
:
Context
,
parent
:
ViewGroup
,
viewType
:
Int
):
DocumentViewHolder
{
override
fun
onCreateViewHolder
(
context
:
Context
,
parent
:
ViewGroup
,
viewType
:
Int
):
DocumentViewHolder
{
return
if
(
viewType
==
0
)
{
return
if
(
viewType
==
0
)
{
DocumentViewHolder
(
R
.
layout
.
item_
doc
ument
.
inflate
(
parent
))
DocumentViewHolder
(
R
.
layout
.
item_
lll
ument
.
inflate
(
parent
))
}
else
{
}
else
{
DocumentViewHolder
(
R
.
layout
.
item_bbbod
.
inflate
(
parent
))
DocumentViewHolder
(
R
.
layout
.
item_bbbod
.
inflate
(
parent
))
}
}
...
...
app/src/main/res/layout/activity_main_dsda.xml
View file @
b2e73cc5
...
@@ -615,7 +615,7 @@
...
@@ -615,7 +615,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem=
"@layout/item_
doc
ument"
/>
tools:listitem=
"@layout/item_
lll
ument"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_empty"
android:id=
"@+id/ll_empty"
...
...
app/src/main/res/layout/activity_vvf_sesdlect.xml
View file @
b2e73cc5
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem=
"@layout/item_
doc
ument"
/>
tools:listitem=
"@layout/item_
lll
ument"
/>
<ProgressBar
<ProgressBar
android:id=
"@+id/progressBar"
android:id=
"@+id/progressBar"
...
...
app/src/main/res/layout/item_
doc
ument.xml
→
app/src/main/res/layout/item_
lll
ument.xml
View file @
b2e73cc5
File moved
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