diff --git a/app/build.gradle b/app/build.gradle index 9643519..a452ddc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,6 +33,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' + implementation 'androidx.legacy:legacy-support-v4:1.0.0' testImplementation 'junit:junit:4.13.1' // okhttp diff --git a/app/src/main/java/com/a1/nextlocation/CouponFragment.java b/app/src/main/java/com/a1/nextlocation/CouponFragment.java new file mode 100644 index 0000000..b215276 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/CouponFragment.java @@ -0,0 +1,24 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class CouponFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_coupon, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/HomeFragment.java b/app/src/main/java/com/a1/nextlocation/HomeFragment.java new file mode 100644 index 0000000..c61d6fe --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/HomeFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class HomeFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_home, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/LocationDetailFragment.java b/app/src/main/java/com/a1/nextlocation/LocationDetailFragment.java new file mode 100644 index 0000000..9647aeb --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/LocationDetailFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class LocationDetailFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_location_detail, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/LocationFragment.java b/app/src/main/java/com/a1/nextlocation/LocationFragment.java new file mode 100644 index 0000000..6f7f836 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/LocationFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class LocationFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_location, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/RouteDetailFragment.java b/app/src/main/java/com/a1/nextlocation/RouteDetailFragment.java new file mode 100644 index 0000000..6929de9 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/RouteDetailFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class RouteDetailFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_route_detail, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/RouteFragment.java b/app/src/main/java/com/a1/nextlocation/RouteFragment.java new file mode 100644 index 0000000..f86a3f8 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/RouteFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class RouteFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_route, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/SettingsFragment.java b/app/src/main/java/com/a1/nextlocation/SettingsFragment.java new file mode 100644 index 0000000..d1246b2 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/SettingsFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class SettingsFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_settings, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/java/com/a1/nextlocation/StatisticFragment.java b/app/src/main/java/com/a1/nextlocation/StatisticFragment.java new file mode 100644 index 0000000..b443d15 --- /dev/null +++ b/app/src/main/java/com/a1/nextlocation/StatisticFragment.java @@ -0,0 +1,25 @@ +package com.a1.nextlocation; + +import android.os.Bundle; + +import androidx.fragment.app.Fragment; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public class StatisticFragment extends Fragment { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_statistic, container, false); + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_coupon.xml b/app/src/main/res/layout/fragment_coupon.xml new file mode 100644 index 0000000..506e204 --- /dev/null +++ b/app/src/main/res/layout/fragment_coupon.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml new file mode 100644 index 0000000..27a4d2c --- /dev/null +++ b/app/src/main/res/layout/fragment_home.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_location.xml b/app/src/main/res/layout/fragment_location.xml new file mode 100644 index 0000000..787d27b --- /dev/null +++ b/app/src/main/res/layout/fragment_location.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_location_detail.xml b/app/src/main/res/layout/fragment_location_detail.xml new file mode 100644 index 0000000..4a42c2d --- /dev/null +++ b/app/src/main/res/layout/fragment_location_detail.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_route.xml b/app/src/main/res/layout/fragment_route.xml new file mode 100644 index 0000000..3fe4c13 --- /dev/null +++ b/app/src/main/res/layout/fragment_route.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_route_detail.xml b/app/src/main/res/layout/fragment_route_detail.xml new file mode 100644 index 0000000..f1ee0d0 --- /dev/null +++ b/app/src/main/res/layout/fragment_route_detail.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_settings.xml b/app/src/main/res/layout/fragment_settings.xml new file mode 100644 index 0000000..647f96b --- /dev/null +++ b/app/src/main/res/layout/fragment_settings.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_statistic.xml b/app/src/main/res/layout/fragment_statistic.xml new file mode 100644 index 0000000..76f4b5f --- /dev/null +++ b/app/src/main/res/layout/fragment_statistic.xml @@ -0,0 +1,14 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3761406..51a1649 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,5 @@ Next Location + + Hello blank fragment \ No newline at end of file