Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White
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 Viewer Scanner White
Commits
c861e374
Commit
c861e374
authored
Sep 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
325b8d4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
PdfSelectActivity.kt
...dfviewerscannerwhite/ui/document/pdf/PdfSelectActivity.kt
+10
-2
bg_selector_split.xml
app/src/main/res/drawable/bg_selector_split.xml
+0
-5
activity_pdf_split.xml
app/src/main/res/layout/activity_pdf_split.xml
+1
-1
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/document/pdf/PdfSelectActivity.kt
View file @
c861e374
...
...
@@ -25,10 +25,14 @@ class PdfSelectActivity : BaseActivity<ActivityPdfSelectBinding>(), DocumentView
ActivityPdfSelectBinding
.
inflate
(
layoutInflater
)
}
@SuppressLint
(
"SetTextI18n"
)
override
fun
initView
()
{
doWhat
=
intent
.
extras
?.
getString
(
"doWhat"
,
""
)
?:
""
documentPresenter
=
DocumentPresenter
(
this
,
this
,
DocumentBean
.
TYPE_PDF
,
lifecycleScope
)
if
(
doWhat
==
DO_SPLIT_PDF
)
{
binding
.
tvBtnNext
.
visibility
=
View
.
GONE
binding
.
tvSelectTip
.
text
=
"Select a project"
}
initAdapter
()
documentPresenter
.
initData
()
}
...
...
@@ -50,7 +54,11 @@ class PdfSelectActivity : BaseActivity<ActivityPdfSelectBinding>(), DocumentView
private
fun
initAdapter
()
{
adapter
=
DocumentAdapter
()
adapter
.
itemClick
=
{
if
(
doWhat
==
DO_SPLIT_PDF
)
{
startActivity
(
Intent
(
this
,
PdfSplitActivity
::
class
.
java
).
apply
{
putExtra
(
"path"
,
it
.
path
)
})
}
}
adapter
.
selectAction
=
{
if
(
it
==
0
)
{
...
...
app/src/main/res/drawable/bg_selector_split.xml
deleted
100644 → 0
View file @
325b8d4a
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/bg_00b8de_10"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/bg_7fdcee_10"
android:state_enabled=
"true"
/>
</selector>
\ No newline at end of file
app/src/main/res/layout/activity_pdf_split.xml
View file @
c861e374
...
...
@@ -72,7 +72,7 @@
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:layout_marginBottom=
"35dp"
android:background=
"@drawable/bg_selector_
split
"
android:background=
"@drawable/bg_selector_
btn
"
android:enabled=
"false"
android:gravity=
"center"
android:text=
"Split"
...
...
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