[ADD] packages and rafactored ui classes

This commit is contained in:
Sem van der Hoeven
2020-12-14 10:42:33 +01:00
parent 4e5eea1d9f
commit 3b6faf0672
19 changed files with 37 additions and 19 deletions

View File

@@ -12,7 +12,7 @@
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.NextLocation"> android:theme="@style/Theme.NextLocation">
<activity android:name=".MainActivity"> <activity android:name=".fragments.MainActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class CouponFragment extends Fragment { public class CouponFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class HomeFragment extends Fragment { public class HomeFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class LocationDetailFragment extends Fragment { public class LocationDetailFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class LocationFragment extends Fragment { public class LocationFragment extends Fragment {
@Override @Override

View File

@@ -1,9 +1,11 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import com.a1.nextlocation.R;
public class MainActivity extends AppCompatActivity { public class MainActivity extends AppCompatActivity {
/** /**

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class RouteDetailFragment extends Fragment { public class RouteDetailFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class RouteFragment extends Fragment { public class RouteFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class SettingsFragment extends Fragment { public class SettingsFragment extends Fragment {
@Override @Override

View File

@@ -1,4 +1,4 @@
package com.a1.nextlocation; package com.a1.nextlocation.fragments;
import android.os.Bundle; import android.os.Bundle;
@@ -8,6 +8,8 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.a1.nextlocation.R;
public class StatisticFragment extends Fragment { public class StatisticFragment extends Fragment {
@Override @Override

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity"> tools:context=".fragments.MainActivity">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".CouponFragment"> tools:context=".fragments.CouponFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".HomeFragment"> tools:context=".fragments.HomeFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".LocationFragment"> tools:context=".fragments.LocationFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".LocationDetailFragment"> tools:context=".fragments.LocationDetailFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".RouteFragment"> tools:context=".fragments.RouteFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".RouteDetailFragment"> tools:context=".fragments.RouteDetailFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".SettingsFragment"> tools:context=".fragments.SettingsFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".StatisticFragment"> tools:context=".fragments.StatisticFragment">
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<TextView <TextView