mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2026-02-01 15:56:14 +00:00
Partially Appeal to Issue #149.
Now supports `SwipeRefreshLayout` in all layouts.
This commit is contained in:
parent
8b4c2ba79a
commit
1b0c076b88
@ -92,11 +92,9 @@ public class DynamicRecyclerView extends RecyclerView {
|
||||
}
|
||||
|
||||
private void showParentOrSelf(boolean showRecyclerView) {
|
||||
if (parentView == null) {
|
||||
setVisibility(showRecyclerView ? VISIBLE : GONE);
|
||||
} else {
|
||||
parentView.setVisibility(showRecyclerView ? VISIBLE : GONE);
|
||||
}
|
||||
if(parentView!=null)
|
||||
parentView.setVisibility(VISIBLE);
|
||||
setVisibility(VISIBLE);
|
||||
emptyView.setVisibility(!showRecyclerView ? VISIBLE : GONE);
|
||||
}
|
||||
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="MergeRootFrame">
|
||||
|
||||
<include layout="@layout/state_layout"/>
|
||||
|
||||
<com.fastaccess.ui.widgets.AppbarRefreshLayout
|
||||
android:id="@+id/refresh"
|
||||
android:layout_width="match_parent"
|
||||
@ -22,6 +24,4 @@
|
||||
|
||||
</com.fastaccess.ui.widgets.AppbarRefreshLayout>
|
||||
|
||||
<include layout="@layout/state_layout"/>
|
||||
|
||||
</FrameLayout>
|
||||
Loading…
x
Reference in New Issue
Block a user