Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery 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
Data Recovery White
Commits
b8601506
Commit
b8601506
authored
Jul 08, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...ui
parent
9bcd694b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
PrivacyPageFragment.kt
...ava/com/base/datarecovery/fragment/PrivacyPageFragment.kt
+8
-0
fragment_privacy_page.xml
app/src/main/res/layout/fragment_privacy_page.xml
+15
-9
No files found.
app/src/main/java/com/base/datarecovery/fragment/PrivacyPageFragment.kt
View file @
b8601506
...
...
@@ -15,6 +15,7 @@ import com.base.datarecovery.utils.LogEx
import
com.base.datarecovery.view.DialogViews.showCameraSettingDialog
import
com.base.datarecovery.view.DialogViews.showImageImportDialog
import
java.io.File
import
kotlin.random.Random
class
PrivacyPageFragment
(
val
type
:
String
...
...
@@ -51,6 +52,13 @@ class PrivacyPageFragment(
})
}
}
binding
.
swipeRefreshLayout
.
setOnRefreshListener
{
binding
.
swipeRefreshLayout
.
isRefreshing
=
true
initData
()
binding
.
root
.
postDelayed
({
binding
.
swipeRefreshLayout
.
isRefreshing
=
false
},
Random
.
nextLong
(
2500
))
}
}
...
...
app/src/main/res/layout/fragment_privacy_page.xml
View file @
b8601506
...
...
@@ -29,15 +29,21 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8dp"
android:visibility=
"gone"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:spanCount=
"4"
/>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id=
"@+id/swipeRefreshLayout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"8dp"
android:visibility=
"gone"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:spanCount=
"4"
/>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<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