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
bd95181d
Commit
bd95181d
authored
Oct 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
397bfd85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
PdfDialog.kt
.../java/com/base/pdfviewerscannerwhite/ui/view/PdfDialog.kt
+17
-1
yishuru.png
app/src/main/res/mipmap-xxhdpi/yishuru.png
+0
-0
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/view/PdfDialog.kt
View file @
bd95181d
...
@@ -5,6 +5,10 @@ import android.app.Activity
...
@@ -5,6 +5,10 @@ import android.app.Activity
import
android.app.Dialog
import
android.app.Dialog
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.text.InputType.TYPE_CLASS_TEXT
import
android.text.InputType.TYPE_TEXT_VARIATION_PASSWORD
import
android.text.InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
import
android.text.method.PasswordTransformationMethod
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.view.View
import
android.view.View
import
android.view.WindowManager
import
android.view.WindowManager
...
@@ -208,7 +212,7 @@ object PdfDialog {
...
@@ -208,7 +212,7 @@ object PdfDialog {
}
}
if
(
state
==
0
)
{
if
(
state
==
0
)
{
binding
.
tvTittle
.
text
=
getString
(
R
.
string
.
set_password
)
binding
.
tvTittle
.
text
=
getString
(
R
.
string
.
set_password
)
binding
.
tvTip
.
text
=
getString
(
R
.
string
.
set_password_protection_pdf
)
binding
.
tvTip
.
text
=
getString
(
R
.
string
.
set_password_protection_pdf
)
}
}
}
else
{
}
else
{
...
@@ -257,6 +261,18 @@ object PdfDialog {
...
@@ -257,6 +261,18 @@ object PdfDialog {
}
}
}
}
binding
.
ivEye
.
setOnClickListener
{
if
(
binding
.
edit
.
transformationMethod
==
null
)
{
// 隐藏密码
binding
.
edit
.
transformationMethod
=
PasswordTransformationMethod
()
binding
.
ivEye
.
setImageResource
(
R
.
mipmap
.
weishuru
)
}
else
{
// 显示密码
binding
.
edit
.
transformationMethod
=
null
binding
.
ivEye
.
setImageResource
(
R
.
mipmap
.
yishuru
)
}
}
}
}
}
}
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/yishuru.png
0 → 100644
View file @
bd95181d
3.57 KB
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