Partially Appeal to Issue #149.

Now supports `SwipeRefreshLayout` in all layouts.
This commit is contained in:
Jedi Burrell 2017-05-12 01:06:47 -04:00
parent 8b4c2ba79a
commit 1b0c076b88
2 changed files with 5 additions and 7 deletions

View File

@ -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);
}

View File

@ -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>