Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
scanqrwhitecopy
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
scanqrwhitecopy
Commits
0cb91aed
Commit
0cb91aed
authored
Jan 23, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
bf7655b6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
CreateFragment.kt
.../main/java/com/base/scanqrclear/ui/main/CreateFragment.kt
+1
-1
LottieComponent.java
...base/scanqrclear/ui/widget/guideview/LottieComponent.java
+1
-2
layout_lottie_guide.xml
app/src/main/res/layout/layout_lottie_guide.xml
+0
-1
No files found.
app/src/main/java/com/base/scanqrclear/ui/main/CreateFragment.kt
View file @
0cb91aed
...
@@ -185,7 +185,7 @@ class CreateFragment : BaseFragment<FragmentCreateBinding>(FragmentCreateBinding
...
@@ -185,7 +185,7 @@ class CreateFragment : BaseFragment<FragmentCreateBinding>(FragmentCreateBinding
super
.
onResumeOneShoot
()
super
.
onResumeOneShoot
()
adapter
?.
changeGuide
()
adapter
?.
changeGuide
()
binding
.
root
.
post
{
binding
.
root
.
viewTreeObserver
.
addOnGlobalLayoutListener
{
showGuideScan
()
showGuideScan
()
}
}
}
}
...
...
app/src/main/java/com/base/scanqrclear/ui/widget/guideview/LottieComponent.java
View file @
0cb91aed
...
@@ -3,7 +3,6 @@ package com.base.scanqrclear.ui.widget.guideview;
...
@@ -3,7 +3,6 @@ package com.base.scanqrclear.ui.widget.guideview;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.Toast
;
import
com.base.scanqrclear.R
;
import
com.base.scanqrclear.R
;
...
@@ -17,7 +16,7 @@ public class LottieComponent implements Component {
...
@@ -17,7 +16,7 @@ public class LottieComponent implements Component {
public
View
getView
(
LayoutInflater
inflater
)
{
public
View
getView
(
LayoutInflater
inflater
)
{
LinearLayout
ll
=
(
LinearLayout
)
inflater
.
inflate
(
R
.
layout
.
layout_lottie_guide
,
null
);
LinearLayout
ll
=
(
LinearLayout
)
inflater
.
inflate
(
R
.
layout
.
layout_lottie_guide
,
null
);
ll
.
setOnClickListener
(
view
->
Toast
.
makeText
(
view
.
getContext
(),
"引导层被点击了"
,
Toast
.
LENGTH_SHORT
).
show
());
//
ll.setOnClickListener(view -> Toast.makeText(view.getContext(), "引导层被点击了", Toast.LENGTH_SHORT).show());
return
ll
;
return
ll
;
}
}
...
...
app/src/main/res/layout/layout_lottie_guide.xml
View file @
0cb91aed
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
...
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