diff options
Diffstat (limited to 'org.fox.ttrss')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java | 2 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/res/layout/fragment_headlines_offline.xml | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index f9708dda..a27fe420 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -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); diff --git a/org.fox.ttrss/src/main/res/layout/fragment_headlines_offline.xml b/org.fox.ttrss/src/main/res/layout/fragment_headlines_offline.xml new file mode 100644 index 00000000..c263c852 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/fragment_headlines_offline.xml @@ -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>
\ No newline at end of file |