Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PublicAndroidApps
Nebulo
Commits
983e7d18
Commit
983e7d18
authored
Nov 18, 2019
by
Daniel Wolf
Browse files
Added a progress bar to the query log
parent
c7fed897
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/fragment/querylogfragment/QueryLogListFragment.kt
View file @
983e7d18
...
...
@@ -61,6 +61,7 @@ class QueryLogListFragment: Fragment(), SearchView.OnQueryTextListener {
list
.
layoutManager
=
LinearLayoutManager
(
requireContext
())
list
.
adapter
=
unfilteredAdapter
progress
.
visibility
=
View
.
GONE
}
private
fun
createAdapter
(
source
:
LiveDataSource
<
DnsQuery
>):
RecyclerView
.
Adapter
<
DefaultViewHolder
>
{
...
...
app/src/main/res/layout/fragment_querylog_list.xml
View file @
983e7d18
...
...
@@ -8,6 +8,11 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ProgressBar
android:layout_width=
"64dp"
android:id=
"@+id/progress"
android:layout_height=
"64dp"
/>
<androidx.recyclerview.widget.RecyclerView
android:layout_width=
"match_parent"
android:id=
"@+id/list"
...
...
Write
Preview
Supports
Markdown
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