fix offline headline fragment not expecting recycler view

This commit is contained in:
Andrew Dolgov 2017-06-02 22:18:15 +03:00
parent 83d096b11b
commit 28a371a1b4
2 changed files with 33 additions and 1 deletions

View File

@ -284,7 +284,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
if ("HL_COMPACT".equals(headlineMode) || "HL_COMPACT_NOIMAGES".equals(headlineMode))
m_compactLayoutMode = true;
View view = inflater.inflate(R.layout.fragment_headlines, container, false);
View view = inflater.inflate(R.layout.fragment_headlines_offline, container, false);
m_swipeLayout = (SwipeRefreshLayout) view.findViewById(R.id.headlines_swipe_container);

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/headlines_fragment"
android:background="?android:colorBackground"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/headlines_swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+id/headlines_list"
android:drawSelectorOnTop="true"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
<com.shamanland.fab.FloatingActionButton
android:id="@+id/headlines_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_marginRight="16dp"
android:layout_marginBottom="20dp"
app:floatingActionButtonColor="?colorAccent"
android:src="@drawable/ic_refresh"
/>
</FrameLayout>