From e7d7bc1b4aafc62a994786f2dd634b72d1c0c711 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Thu, 5 Apr 2018 21:07:09 +0300 Subject: [PATCH] Create simple UI for ExploreTabFragment and SavedArticlesTabFragment --- OsmAnd/res/layout/fragment_explore_tab.xml | 14 ++++++++++++++ OsmAnd/res/layout/fragment_saved_articles_tab.xml | 14 ++++++++++++++ .../wikivoyage/explore/ExploreTabFragment.java | 13 +++++++++++++ .../explore/SavedArticlesTabFragment.java | 13 +++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 OsmAnd/res/layout/fragment_explore_tab.xml create mode 100644 OsmAnd/res/layout/fragment_saved_articles_tab.xml diff --git a/OsmAnd/res/layout/fragment_explore_tab.xml b/OsmAnd/res/layout/fragment_explore_tab.xml new file mode 100644 index 0000000000..3ca1310a18 --- /dev/null +++ b/OsmAnd/res/layout/fragment_explore_tab.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/OsmAnd/res/layout/fragment_saved_articles_tab.xml b/OsmAnd/res/layout/fragment_saved_articles_tab.xml new file mode 100644 index 0000000000..0bd472a5a8 --- /dev/null +++ b/OsmAnd/res/layout/fragment_saved_articles_tab.xml @@ -0,0 +1,14 @@ + + + + + + diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java index 4b00b04a73..907519efac 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/ExploreTabFragment.java @@ -1,7 +1,20 @@ package net.osmand.plus.wikivoyage.explore; +import android.os.Bundle; +import android.support.annotation.NonNull; +import android.support.annotation.Nullable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import net.osmand.plus.R; import net.osmand.plus.base.BaseOsmAndFragment; public class ExploreTabFragment extends BaseOsmAndFragment { + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + return inflater.inflate(R.layout.fragment_explore_tab, container, false); + } } diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesTabFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesTabFragment.java index 8b9f7c36c7..ad705a4219 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesTabFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/SavedArticlesTabFragment.java @@ -1,7 +1,20 @@ package net.osmand.plus.wikivoyage.explore; +import android.os.Bundle; +import android.support.annotation.NonNull; +import android.support.annotation.Nullable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import net.osmand.plus.R; import net.osmand.plus.base.BaseOsmAndFragment; public class SavedArticlesTabFragment extends BaseOsmAndFragment { + @Nullable + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { + return inflater.inflate(R.layout.fragment_saved_articles_tab, container, false); + } }