diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a0d73de547f2aff884394ddc5540f34b13b5ddbb..70ac1d636a427386418e112642ecb3f4d84cc283 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,7 +6,6 @@ <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> - <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" @@ -14,7 +13,15 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.DM_td2"> - <activity android:name=".userInfo.UserInfoActivity"></activity> + <activity android:name=".userInfo.AuthentificationActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <activity android:name=".userInfo.UserInfoActivity" /> + <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" @@ -24,6 +31,7 @@ android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> </provider> + <activity android:name=".task.TaskActivity" /> <activity android:name=".MainActivity"> <intent-filter> diff --git a/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationActivity.kt b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..dfb48096e474614c035f7f5e3f23d47e2dbdfc4f --- /dev/null +++ b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationActivity.kt @@ -0,0 +1,12 @@ +package com.clemhaowen.dm_td2.userInfo + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import com.clemhaowen.dm_td2.R + +class AuthentificationActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_authentification) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationFragment.kt b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationFragment.kt new file mode 100644 index 0000000000000000000000000000000000000000..c39de733800da48c078cc3b3f0865260d899ddc0 --- /dev/null +++ b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/AuthentificationFragment.kt @@ -0,0 +1,4 @@ +package com.clemhaowen.dm_td2.userInfo + +class AuthentificationFragment { +} \ No newline at end of file diff --git a/app/src/main/java/com/clemhaowen/dm_td2/userInfo/LoginFragment.kt b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/LoginFragment.kt new file mode 100644 index 0000000000000000000000000000000000000000..12e3bf3eb6ed464d787bb9226968819b5aca54f7 --- /dev/null +++ b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/LoginFragment.kt @@ -0,0 +1,4 @@ +package com.clemhaowen.dm_td2.userInfo + +class LoginFragment { +} \ No newline at end of file diff --git a/app/src/main/java/com/clemhaowen/dm_td2/userInfo/SignupFragment.kt b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/SignupFragment.kt new file mode 100644 index 0000000000000000000000000000000000000000..66e6c8bc8d18e451f82ab1d6fa4a2c60270c3b45 --- /dev/null +++ b/app/src/main/java/com/clemhaowen/dm_td2/userInfo/SignupFragment.kt @@ -0,0 +1,4 @@ +package com.clemhaowen.dm_td2.userInfo + +class SignupFragment { +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_authentification.xml b/app/src/main/res/layout/activity_authentification.xml new file mode 100644 index 0000000000000000000000000000000000000000..d204d427585e2ede028e131e90af78a6daa1ab53 --- /dev/null +++ b/app/src/main/res/layout/activity_authentification.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<fragment + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/nav_host_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:name="androidx.navigation.fragment.NavHostFragment" + app:defaultNavHost="true" + app:navGraph="@navigation/nav_graph" /> \ No newline at end of file diff --git a/app/src/main/res/layout/authentification_fragment.xml b/app/src/main/res/layout/authentification_fragment.xml new file mode 100644 index 0000000000000000000000000000000000000000..0157645edf49ff23bfa3103abb64a6442b0ee27d --- /dev/null +++ b/app/src/main/res/layout/authentification_fragment.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Button + android:id="@+id/login_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Log in" /> + + <Button + android:id="@+id/signup_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="Sign up" /> +</LinearLayout> \ No newline at end of file diff --git a/app/src/main/res/layout/login_fragment.xml b/app/src/main/res/layout/login_fragment.xml new file mode 100644 index 0000000000000000000000000000000000000000..73c447d79aec16ab86ba8b787745ba46d435ec95 --- /dev/null +++ b/app/src/main/res/layout/login_fragment.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <EditText + android:id="@+id/editTextTextEmailAddress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textEmailAddress" /> + + <EditText + android:id="@+id/editTextTextPassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPassword" /> + + <Button + android:id="@+id/validate_login_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Log in" /> +</LinearLayout> \ No newline at end of file diff --git a/app/src/main/res/layout/signup_fragment.xml b/app/src/main/res/layout/signup_fragment.xml new file mode 100644 index 0000000000000000000000000000000000000000..564cd1e8ea5adda6e86a8fb95ef9213cc41f78d5 --- /dev/null +++ b/app/src/main/res/layout/signup_fragment.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <EditText + android:id="@+id/editTextTextPersonFirstName" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPersonName" + android:text="Firstname" /> + + <EditText + android:id="@+id/editTextTextPersonLastName" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPersonName" + android:text="Lastname" /> + + <EditText + android:id="@+id/editTextTextRegisterEmailAddress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textEmailAddress" /> + + <EditText + android:id="@+id/editTextTextCreatePassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPassword" /> + + <EditText + android:id="@+id/editTextTextConfirmPassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:inputType="textPassword" /> + + <Button + android:id="@+id/validate_signup_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Sign up" /> +</LinearLayout> \ No newline at end of file diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml new file mode 100644 index 0000000000000000000000000000000000000000..c8384f71f9119951d5491b0555bfd68c79da0285 --- /dev/null +++ b/app/src/main/res/navigation/nav_graph.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<navigation xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/nav_graph"> + +</navigation> \ No newline at end of file