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
ddf718fa
Commit
ddf718fa
authored
Oct 30, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...手动混淆...
parent
1ca69fda
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
PdfPrAdapter.kt
app/src/main/java/com/base/pdfreader2/ui/pdf/PdfPrAdapter.kt
+4
-4
actty_fpd_vb.xml
app/src/main/res/layout/actty_fpd_vb.xml
+1
-1
item_eedf_pjjger.xml
app/src/main/res/layout/item_eedf_pjjger.xml
+0
-0
No files found.
app/src/main/java/com/base/pdfreader2/ui/pdf/PdfPrAdapter.kt
View file @
ddf718fa
...
...
@@ -8,7 +8,7 @@ import android.widget.ImageView
import
androidx.recyclerview.widget.RecyclerView.ViewHolder
import
com.base.pdfreader2.R
import
com.base.pdfreader2.bean.PdQEfPageBean
import
com.base.pdfreader2.databinding.Item
PdfPa
gerBinding
import
com.base.pdfreader2.databinding.Item
EedfPjj
gerBinding
import
com.base.pdfreader2.databinding.ItemPdfPagerSplitBinding
import
com.base.pdfreader2.utils.PdfBasdasdoxUtils.getPdfDrawablePage
import
com.base.pdfreader2.utils.dasdmlEx.inflate
...
...
@@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit
class
PdfPrAdapter
(
val
pdfPath
:
String
,
val
uri
:
String
?
=
null
,
val
itemLayout
:
Int
=
R
.
layout
.
item_
pdf_pa
ger
,
val
itemLayout
:
Int
=
R
.
layout
.
item_
eedf_pjj
ger
,
)
:
BaseQuickAdapter
<
PdQEfPageBean
,
PdfPrAdapter
.
PdfPagerViewHolder
>()
{
var
mPassword
:
String
?
=
null
...
...
@@ -45,8 +45,8 @@ class PdfPrAdapter(
override
fun
onBindViewHolder
(
holder
:
PdfPagerViewHolder
,
position
:
Int
,
item
:
PdQEfPageBean
?)
{
if
(
item
==
null
)
return
when
(
itemLayout
)
{
R
.
layout
.
item_
pdf_pa
ger
->
{
val
binding
=
Item
PdfPa
gerBinding
.
bind
(
holder
.
itemView
)
R
.
layout
.
item_
eedf_pjj
ger
->
{
val
binding
=
Item
EedfPjj
gerBinding
.
bind
(
holder
.
itemView
)
val
context
=
holder
.
itemView
.
context
binding
.
tvPagerIndex
.
isSelected
=
item
.
isSelect
binding
.
tvPagerIndex
.
text
=
(
item
.
pageIndex
+
1
).
toString
()
...
...
app/src/main/res/layout/actty_fpd_vb.xml
View file @
ddf718fa
...
...
@@ -343,7 +343,7 @@
android:paddingTop=
"5dp"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf=
"parent"
tools:listitem=
"@layout/item_
pdf_pa
ger"
/>
tools:listitem=
"@layout/item_
eedf_pjj
ger"
/>
</LinearLayout>
...
...
app/src/main/res/layout/item_
pdf_pa
ger.xml
→
app/src/main/res/layout/item_
eedf_pjj
ger.xml
View file @
ddf718fa
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