Skip to content

Commit 0ae7014

Browse files
committed
Work In Progress of Starting Feature for project-travel-mate#534
Starting point for project-travel-mate#534 Added the 'Offline Maps' section to the Navigation Drawer complete with the icon. 'fragment_offlinemaps.xml' and 'OfflineMapsFragment.java' also created.
1 parent 81ba80b commit 0ae7014

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

Android/app/src/main/java/io/github/project_travel_mate/MainActivity.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ private Fragment getFragmentByNavMenuItemId(int id) {
233233
case R.id.nav_utility:
234234
fragment = UtilitiesFragment.newInstance();
235235
break;
236-
236+
//Work In Progress Offline Maps
237+
case R.id.nav_offlinemaps:
238+
break;
237239
case R.id.nav_about_us:
238240
fragment = AboutUsFragment.newInstance();
239241
break;

Android/app/src/main/java/io/github/project_travel_mate/destinations/CityFragment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
182182

183183
mCityAdapter.updateData(mCities);
184184

185-
if (mSpotlightShownCount <= 3) {
185+
if (mSpotlightShownCount <= 4) {
186186
showSpotlightView(mSpotView);
187187
}
188188
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package io.github.project_travel_mate.utilities;
2+
3+
import android.content.Intent;
4+
import android.support.v4.app.Fragment;
5+
6+
import adapters.CardViewOptionsAdapter;
7+
8+
public class OfflineMapsFragment extends Fragment implements CardViewOptionsAdapter.OnItemClickListener {
9+
@Override
10+
public void onItemClick(int position) {
11+
Intent intent;
12+
}
13+
}
20.5 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<android.widget.ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent" android:layout_height="match_parent">
4+
5+
<android.support.v7.widget.RecyclerView
6+
android:id="@+id/offlinemaps_list_recyclerView"
7+
android:layout_width="match_parent"
8+
android:layout_height="wrap_content" />
9+
</android.widget.ScrollView>

0 commit comments

Comments
 (0)