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
15b3536e
Commit
15b3536e
authored
Sep 27, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
b762cd2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
702 additions
and
6 deletions
+702
-6
build.gradle.kts
app/build.gradle.kts
+1
-2
VerticalSeekBar.kt
...com/base/pdfviewerscannerwhite/ui/view/VerticalSeekBar.kt
+574
-0
activity_pdf.xml
app/src/main/res/layout/activity_pdf.xml
+3
-3
activity_word.xml
app/src/main/res/layout/activity_word.xml
+1
-1
layout_verticalseekbar.xml
app/src/main/res/layout/layout_verticalseekbar.xml
+86
-0
attr.xml
app/src/main/res/values/attr.xml
+37
-0
No files found.
app/build.gradle.kts
View file @
15b3536e
...
...
@@ -58,10 +58,9 @@ dependencies {
//第三方UI
implementation
(
"io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4"
)
implementation
(
"com.github.lukelorusso:VerticalSeekBar:1.2.5"
)
implementation
(
"com.github.angcyo.DslTablayout:TabLayout:3.5.5"
)
implementation
(
"com.github.angcyo.DslTablayout:ViewPager2Delegate:3.5.5"
)
implementation
(
"com.github.bosphere:android-verticalslider:1.0.3
"
)
// implementation("com.github.lukelorusso:VerticalSeekBar:1.2.5
")
//mlkit
implementation
(
"com.google.android.gms:play-services-mlkit-document-scanner:16.0.0-beta1"
)
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/view/VerticalSeekBar.kt
0 → 100644
View file @
15b3536e
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_pdf.xml
View file @
15b3536e
...
...
@@ -21,15 +21,15 @@
</com.artifex.mupdfdemo.MuPDFReaderView>
<com.
lukelorusso.verticalseekbar
.VerticalSeekBar
<com.
base.pdfviewerscannerwhite.ui.view
.VerticalSeekBar
android:id=
"@+id/vertical_seekbar"
android:layout_width=
"30dp"
android:layout_height=
"match_parent"
android:layout_gravity=
"end"
android:layout_marginEnd=
"10dp"
android:visibility=
"gone"
app:vsb_bar_background=
"
#00FA6146
"
app:vsb_bar_progress=
"
#00FA6146
"
app:vsb_bar_background=
"
@color/transparent
"
app:vsb_bar_progress=
"
@color/transparent
"
app:vsb_show_thumb=
"true"
/>
</FrameLayout>
...
...
app/src/main/res/layout/activity_word.xml
View file @
15b3536e
...
...
@@ -130,7 +130,7 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/v_animator_top"
/>
<com.
lukelorusso.verticalseekbar
.VerticalSeekBar
<com.
base.pdfviewerscannerwhite.ui.view
.VerticalSeekBar
android:id=
"@+id/vertical_seekbar"
android:layout_width=
"30dp"
android:layout_height=
"match_parent"
...
...
app/src/main/res/layout/layout_verticalseekbar.xml
0 → 100644
View file @
15b3536e
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/container"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/transparent"
>
<androidx.cardview.widget.CardView
android:id=
"@+id/barCardView"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_horizontal"
app:cardBackgroundColor=
"@color/transparent"
app:cardElevation=
"0dp"
>
<View
android:id=
"@+id/barBackground"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent"
/>
<View
android:id=
"@+id/barProgress"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent"
/>
</androidx.cardview.widget.CardView>
<FrameLayout
android:id=
"@+id/maxPlaceholderLayout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:background=
"@color/transparent"
>
<ImageView
android:id=
"@+id/maxPlaceholder"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:contentDescription=
"@null"
/>
</FrameLayout>
<FrameLayout
android:id=
"@+id/minPlaceholderLayout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal|bottom"
android:background=
"@color/transparent"
>
<ImageView
android:id=
"@+id/minPlaceholder"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:contentDescription=
"@null"
/>
</FrameLayout>
<FrameLayout
android:id=
"@+id/thumb"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
>
<androidx.cardview.widget.CardView
android:id=
"@+id/thumbCardView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
app:cardElevation=
"0dp"
>
<ImageView
android:id=
"@+id/thumbPlaceholder"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:contentDescription=
"@null"
/>
</androidx.cardview.widget.CardView>
</FrameLayout>
</FrameLayout>
app/src/main/res/values/attr.xml
0 → 100644
View file @
15b3536e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable
name=
"VerticalSeekBar"
>
<attr
name=
"vsb_click_to_set_progress"
format=
"boolean"
/>
<attr
name=
"vsb_bar_corner_radius"
format=
"dimension"
/>
<attr
name=
"vsb_bar_width"
format=
"dimension"
/>
<attr
name=
"vsb_bar_background"
format=
"reference|color"
/>
<attr
name=
"vsb_bar_background_gradient_start"
format=
"color"
/>
<attr
name=
"vsb_bar_background_gradient_end"
format=
"color"
/>
<attr
name=
"vsb_bar_progress"
format=
"reference|color"
/>
<attr
name=
"vsb_bar_progress_gradient_start"
format=
"color"
/>
<attr
name=
"vsb_bar_progress_gradient_end"
format=
"color"
/>
<attr
name=
"vsb_progress"
format=
"integer"
/>
<attr
name=
"vsb_max_value"
format=
"integer"
/>
<attr
name=
"vsb_min_placeholder_position"
format=
"enum"
>
<enum
name=
"outside"
value=
"0"
/>
<enum
name=
"inside"
value=
"1"
/>
<enum
name=
"middle"
value=
"2"
/>
</attr>
<attr
name=
"vsb_min_placeholder_src"
format=
"reference"
/>
<attr
name=
"vsb_max_placeholder_position"
format=
"enum"
>
<enum
name=
"outside"
value=
"0"
/>
<enum
name=
"inside"
value=
"1"
/>
<enum
name=
"middle"
value=
"2"
/>
</attr>
<attr
name=
"vsb_max_placeholder_src"
format=
"reference"
/>
<attr
name=
"vsb_show_thumb"
format=
"boolean"
/>
<attr
name=
"vsb_thumb_container_corner_radius"
format=
"dimension"
/>
<attr
name=
"vsb_thumb_container_tint"
format=
"color"
/>
<attr
name=
"vsb_thumb_placeholder_src"
format=
"integer"
/>
<attr
name=
"vsb_use_thumb_to_set_progress"
format=
"boolean"
/>
<attr
name=
"android:layout_width"
/>
<attr
name=
"android:layout_height"
/>
</declare-styleable>
</resources>
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