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
bfe56a87
Commit
bfe56a87
authored
Oct 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
14379bbf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
18 deletions
+34
-18
AdmobBannerColla.kt
.../base/pdfviewerscannerwhite/ads/admob/AdmobBannerColla.kt
+0
-9
PdfActivity.kt
...base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
+2
-0
activity_pdf.xml
app/src/main/res/layout/activity_pdf.xml
+32
-9
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ads/admob/AdmobBannerColla.kt
View file @
bfe56a87
...
@@ -72,15 +72,6 @@ object AdmobBannerUtils {
...
@@ -72,15 +72,6 @@ object AdmobBannerUtils {
override
fun
onAdClosed
()
{
override
fun
onAdClosed
()
{
super
.
onAdClosed
()
super
.
onAdClosed
()
LogEx
.
logDebug
(
TAG
,
"onAdClosed"
)
LogEx
.
logDebug
(
TAG
,
"onAdClosed"
)
val
removeList
=
arrayListOf
<
View
>()
parent
.
children
.
forEach
{
if
(
it
.
tag
!=
"CollapsibleBannerAd"
)
{
removeList
.
add
(
it
)
}
}
removeList
.
forEach
{
parent
.
removeView
(
it
)
}
}
}
}
}
adView
?.
loadAd
(
adRequest
)
adView
?.
loadAd
(
adRequest
)
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
View file @
bfe56a87
...
@@ -25,6 +25,7 @@ import com.artifex.mupdfdemo.MuPDFView
...
@@ -25,6 +25,7 @@ import com.artifex.mupdfdemo.MuPDFView
import
com.artifex.mupdfdemo.SearchTask
import
com.artifex.mupdfdemo.SearchTask
import
com.artifex.mupdfdemo.SearchTaskResult
import
com.artifex.mupdfdemo.SearchTaskResult
import
com.base.pdfviewerscannerwhite.R
import
com.base.pdfviewerscannerwhite.R
import
com.base.pdfviewerscannerwhite.ads.admob.AdmobBannerUtils
import
com.base.pdfviewerscannerwhite.bean.ConstObject.DO_SAVE_PDF
import
com.base.pdfviewerscannerwhite.bean.ConstObject.DO_SAVE_PDF
import
com.base.pdfviewerscannerwhite.bean.ConstObject.haveGuideGesture
import
com.base.pdfviewerscannerwhite.bean.ConstObject.haveGuideGesture
import
com.base.pdfviewerscannerwhite.bean.PdfPageBean
import
com.base.pdfviewerscannerwhite.bean.PdfPageBean
...
@@ -115,6 +116,7 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
...
@@ -115,6 +116,7 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
binding
.
flGuideGesture
.
visibility
=
View
.
VISIBLE
binding
.
flGuideGesture
.
visibility
=
View
.
VISIBLE
}
}
AdmobBannerUtils
.
showCollapsibleBannerAd
(
this
,
binding
.
flAd
)
}
}
private
fun
iniSetVerticalSeekbar
(
max
:
Int
)
{
private
fun
iniSetVerticalSeekbar
(
max
:
Int
)
{
...
...
app/src/main/res/layout/activity_pdf.xml
View file @
bfe56a87
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
android:layout_marginEnd=
"35dp"
android:layout_marginEnd=
"35dp"
android:layout_marginBottom=
"108dp"
android:layout_marginBottom=
"108dp"
android:src=
"@mipmap/bianji"
android:src=
"@mipmap/bianji"
app:layout_constraintBottom_toBottomOf=
"
parent
"
app:layout_constraintBottom_toBottomOf=
"
@id/v_animator_bottom
"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
...
@@ -196,6 +196,7 @@
...
@@ -196,6 +196,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_marginBottom=
"60dp"
android:background=
"@color/white"
android:background=
"@color/white"
app:layout_constraintBottom_toBottomOf=
"parent"
>
app:layout_constraintBottom_toBottomOf=
"parent"
>
...
@@ -351,11 +352,31 @@
...
@@ -351,11 +352,31 @@
</ViewAnimator>
</ViewAnimator>
<FrameLayout
<FrameLayout
android:visibility=
"gone"
android:id=
"@+id/fl_ad"
android:layout_width=
"match_parent"
android:layout_height=
"60dp"
app:layout_constraintBottom_toBottomOf=
"parent"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/zhanweitu2"
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
<FrameLayout
android:id=
"@+id/fl_guide_gesture"
android:id=
"@+id/fl_guide_gesture"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#336C677C"
>
android:visibility=
"gone"
>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:background=
"#336C677C"
tools:ignore=
"UselessParent"
>
<com.base.pdfviewerscannerwhite.ui.view.XmlLottieAnimationView
<com.base.pdfviewerscannerwhite.ui.view.XmlLottieAnimationView
android:id=
"@+id/lottie"
android:id=
"@+id/lottie"
...
@@ -363,9 +384,11 @@
...
@@ -363,9 +384,11 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
app:lottie_autoPlay=
"true"
app:lottie_autoPlay=
"true"
app:lottie_repeatCount=
"0
"
app:lottie_loop=
"true
"
app:lottie_rawRes=
"@raw/enlarge"
app:lottie_rawRes=
"@raw/enlarge"
app:lottie_loop=
"true"
/>
app:lottie_repeatCount=
"0"
/>
</FrameLayout>
</FrameLayout>
</FrameLayout>
...
...
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