[app] Add loading indicator to app list
This commit is contained in:
parent
bd8dd70969
commit
19a9b7fd7f
|
|
@ -146,6 +146,7 @@ public class AppListActivity extends BaseActivity {
|
|||
}
|
||||
|
||||
public void onDataReady() {
|
||||
handler.post(() -> binding.progress.hide());
|
||||
String queryStr = searchView != null ? searchView.getQuery().toString() : "";
|
||||
runOnUiThread(() -> scopeAdapter.getFilter().filter(queryStr));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,13 @@
|
|||
app:switchOnText="@string/enable_module"
|
||||
app:switchOffText="@string/enable_module" />
|
||||
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
app:hideAnimationBehavior="outward" />
|
||||
|
||||
<rikka.widget.borderview.BorderRecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
|||
Loading…
Reference in New Issue