diff --git a/app/MyHyvesBookPlusStagram/.gitignore b/app/MyHyvesBookPlusStagram/.gitignore new file mode 100644 index 0000000..39fb081 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures +.externalNativeBuild diff --git a/app/MyHyvesBookPlusStagram/app/.gitignore b/app/MyHyvesBookPlusStagram/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/MyHyvesBookPlusStagram/app/build.gradle b/app/MyHyvesBookPlusStagram/app/build.gradle new file mode 100644 index 0000000..1a05b0f --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/build.gradle @@ -0,0 +1,45 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.3" + defaultConfig { + applicationId "nl.myhyvesbookplus.tagram" + minSdkVersion 21 + targetSdkVersion 25 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + compile 'com.android.support:appcompat-v7:25.3.1' + compile 'com.android.support:design:25.3.1' + compile 'com.google.firebase:firebase-database:10.0.1' + compile 'com.google.firebase:firebase-auth:10.0.1' + compile 'com.android.support.constraint:constraint-layout:1.0.2' + compile 'com.android.support:support-v4:25.3.1' + testCompile 'junit:junit:4.12' +} + + + + + + + + + + +apply plugin: 'com.google.gms.google-services' \ No newline at end of file diff --git a/app/MyHyvesBookPlusStagram/app/proguard-rules.pro b/app/MyHyvesBookPlusStagram/app/proguard-rules.pro new file mode 100644 index 0000000..842d59b --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/proguard-rules.pro @@ -0,0 +1,25 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/marijnjansen/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/app/MyHyvesBookPlusStagram/app/src/main/AndroidManifest.xml b/app/MyHyvesBookPlusStagram/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..86ae044 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java new file mode 100644 index 0000000..1d258cc --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java @@ -0,0 +1,108 @@ +package nl.myhyvesbookplus.tagram; + +import android.content.Context; +import android.net.Uri; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + + +/** + * A simple {@link Fragment} subclass. + * Activities that contain this fragment must implement the + * {@link CameraFragment.OnFragmentInteractionListener} interface + * to handle interaction events. + * Use the {@link CameraFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class CameraFragment extends Fragment { + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + private OnFragmentInteractionListener mListener; + + public CameraFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment CameraFragment. + */ + // TODO: Rename and change types and number of parameters + public static CameraFragment newInstance(String param1, String param2) { + CameraFragment fragment = new CameraFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_camera, container, false); + } + + // TODO: Rename method, update argument and hook method into UI event + public void onButtonPressed(Uri uri) { + if (mListener != null) { + mListener.onFragmentInteraction(uri); + } + } + + @Override + public void onAttach(Context context) { + super.onAttach(context); + if (context instanceof OnFragmentInteractionListener) { + mListener = (OnFragmentInteractionListener) context; + } else { + throw new RuntimeException(context.toString() + + " must implement OnFragmentInteractionListener"); + } + } + + @Override + public void onDetach() { + super.onDetach(); + mListener = null; + } + + /** + * This interface must be implemented by activities that contain this + * fragment to allow an interaction in this fragment to be communicated + * to the activity and potentially other fragments contained in that + * activity. + *

+ * See the Android Training lesson Communicating with Other Fragments for more information. + */ + public interface OnFragmentInteractionListener { + // TODO: Update argument type and name + void onFragmentInteraction(Uri uri); + } +} diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/LoginActivity.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/LoginActivity.java new file mode 100644 index 0000000..1adf687 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/LoginActivity.java @@ -0,0 +1,233 @@ +package nl.myhyvesbookplus.tagram; + +import android.content.Intent; +import android.support.annotation.NonNull; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.TextView; +import android.widget.Toast; + +import com.google.android.gms.tasks.OnCompleteListener; +import com.google.android.gms.tasks.Task; +import com.google.firebase.auth.AuthResult; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.auth.FirebaseUser; +import com.google.firebase.auth.UserProfileChangeRequest; + +public class LoginActivity extends AppCompatActivity { + public static final String TAG = "Login"; + + /// Views /// + + protected EditText emailField, usernameField, passwordField; + protected TextView passwordConfirmField, passwordConfirmLabel, usernameLabel; + protected Button registerButton, backToLoginButton, goToRegisterButton, logInButton; + + protected FirebaseAuth mAuth; + + /// Setup /// + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(nl.myhyvesbookplus.tagram.R.layout.activity_login); + mAuth = FirebaseAuth.getInstance(); + + findViews(); + } + + @Override + protected void onStart() { + super.onStart(); + } + + /** + * Assigns all views. + */ + protected void findViews() { + passwordConfirmLabel = (TextView) findViewById(R.id.confirm_password_label); + usernameLabel = (TextView) findViewById(R.id.username_label); + + registerButton = (Button) findViewById(R.id.register_button); + backToLoginButton = (Button) findViewById(R.id.back_to_login_button); + goToRegisterButton = (Button) findViewById(R.id.go_to_register_button); + logInButton = (Button) findViewById(R.id.login_button); + + passwordConfirmField = (EditText) findViewById(R.id.confirm_password_field); + usernameField = (EditText) findViewById(R.id.username); + passwordField = (EditText) findViewById(R.id.password); + emailField = (EditText) findViewById(R.id.email); + } + + /// OnClick /// + + /** + * Performs the logon action. + * + * @param view + */ + public void logInOnClick(View view) { + String emailSting = emailField.getText().toString(); + String passwordSting = passwordField.getText().toString(); + + logIn(emailSting, passwordSting); + } + + /** + * Performs the register action. + * @param view + */ + public void registerOnClick(View view) { + Log.d(TAG, "registerOnClick: "); + + if (passwordField.getText().toString().equals(passwordConfirmField.getText().toString())) { + registerUser(emailField.getText().toString(), passwordField.getText().toString()); + } else { + Toast.makeText(LoginActivity.this, "Passwords do not match", + Toast.LENGTH_SHORT).show(); + Log.d(TAG, "registerOnClick: Passwords do not match"); + } + + } + + /// UI-changes /// + + /** + * Changes the Activity for registering. + * @param view + */ + public void goToRegisterOnClick(View view) { + passwordConfirmField.setVisibility(View.VISIBLE); + passwordConfirmLabel.setVisibility(View.VISIBLE); + registerButton.setVisibility(View.VISIBLE); + backToLoginButton.setVisibility(View.VISIBLE); + usernameField.setVisibility(View.VISIBLE); + usernameLabel.setVisibility(View.VISIBLE); + + goToRegisterButton.setVisibility(View.GONE); + logInButton.setVisibility(View.GONE); + } + + /** + * Changes the Activity for logging in. + * @param view + */ + public void backToLoginOnClick(View view) { + passwordConfirmField.setVisibility(View.GONE); + passwordConfirmLabel.setVisibility(View.GONE); + registerButton.setVisibility(View.GONE); + backToLoginButton.setVisibility(View.GONE); + usernameField.setVisibility(View.GONE); + usernameLabel.setVisibility(View.GONE); + + goToRegisterButton.setVisibility(View.VISIBLE); + logInButton.setVisibility(View.VISIBLE); + } + + /** + * Performs intend to Main screen. + */ + protected void goToMainScreen() { + Intent intent = new Intent(this, MainActivity.class); + startActivity(intent); + this.finish(); + } + + /// FireBase /// + + /** + * Performs the actual login action. + * @param emailSting email address + * @param passwordSting the entered password + */ + protected void logIn(String emailSting, String passwordSting) { + mAuth.signInWithEmailAndPassword(emailSting, passwordSting) + .addOnCompleteListener(this, new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "signInWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + Log.d(TAG, "onComplete: isVerified " + user.isEmailVerified()); + user.isEmailVerified(); + goToMainScreen(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "signInWithEmail:failure", task.getException()); + Toast.makeText(LoginActivity.this, task.getException().getLocalizedMessage(), + Toast.LENGTH_SHORT).show(); + } + } + }); + } + + /** + * Performs the actual register action + * @param email Users email address + * @param password the entered password + */ + protected void registerUser(String email, String password) { + mAuth.createUserWithEmailAndPassword(email, password) + .addOnCompleteListener(this, new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "createUserWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + updateUserInfo(user); + goToMainScreen(); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "createUserWithEmail:failure", task.getException()); + if (task.getException() != null) { + Toast.makeText(LoginActivity.this, task.getException().getLocalizedMessage(), + Toast.LENGTH_SHORT).show(); + } + } + } + }); + } + + /** + * Saves the Username to Firebase + * @param user The User object that needs to be updated + */ + protected void updateUserInfo(final FirebaseUser user) { + UserProfileChangeRequest request = new UserProfileChangeRequest.Builder() + .setDisplayName(usernameField.getText().toString()) + .build(); + + user.updateProfile(request) + .addOnCompleteListener(new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + Log.d(TAG, "User profile updated."); + } + sendConfirmEmail(user); + } + }); + } + + /** + * Sends a confirm email + * @param user The User object which the mail needs to be send to + */ + protected void sendConfirmEmail(FirebaseUser user) { + user.sendEmailVerification() + .addOnCompleteListener(new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + Log.d(TAG, "Email sent."); + } + } + }); + } +} diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/MainActivity.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/MainActivity.java new file mode 100644 index 0000000..97fe34d --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/MainActivity.java @@ -0,0 +1,79 @@ +package nl.myhyvesbookplus.tagram; + +import android.app.FragmentManager; +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.support.annotation.NonNull; +import android.support.design.widget.BottomNavigationView; +import android.support.v7.app.AppCompatActivity; +import android.view.MenuItem; +import android.view.View; + +import com.google.firebase.auth.FirebaseAuth; + +public class MainActivity extends AppCompatActivity implements CameraFragment.OnFragmentInteractionListener { + final static private String TAG = "MainScreen"; + + FirebaseAuth mAuth; + CameraFragment cameraFragment; + + + private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener + = new BottomNavigationView.OnNavigationItemSelectedListener() { + + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + switch (item.getItemId()) { + case nl.myhyvesbookplus.tagram.R.id.navigation_timeline: + return true; + case nl.myhyvesbookplus.tagram.R.id.navigation_camera: + return true; + case nl.myhyvesbookplus.tagram.R.id.navigation_profile: + return true; + } + return false; + } + + }; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(nl.myhyvesbookplus.tagram.R.layout.activity_main); + + BottomNavigationView navigation = (BottomNavigationView) findViewById(nl.myhyvesbookplus.tagram.R.id.navigation); + navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener); + + FragmentManager fragmentManager = getFragmentManager(); +// FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); + + mAuth = FirebaseAuth.getInstance(); + if (mAuth.getCurrentUser() == null) { + goToLogin(); + } + + } + + @Override + public void onBackPressed() { +// super.onBackPressed(); + finish(); + } + + @Override + public void onFragmentInteraction(Uri uri) { + + } + + public void logOutOnClick(View view) { + FirebaseAuth.getInstance().signOut(); + goToLogin(); + this.finish(); + } + + protected void goToLogin() { + Intent goToLogIn = new Intent(this, LoginActivity.class); + startActivity(goToLogIn); + } +} diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/ProfileFragment.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/ProfileFragment.java new file mode 100644 index 0000000..d63c1ed --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/ProfileFragment.java @@ -0,0 +1,108 @@ +package nl.myhyvesbookplus.tagram; + +import android.content.Context; +import android.net.Uri; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + + +/** + * A simple {@link Fragment} subclass. + * Activities that contain this fragment must implement the + * {@link ProfileFragment.OnFragmentInteractionListener} interface + * to handle interaction events. + * Use the {@link ProfileFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class ProfileFragment extends Fragment { + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + private OnFragmentInteractionListener mListener; + + public ProfileFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment ProfileFragment. + */ + // TODO: Rename and change types and number of parameters + public static ProfileFragment newInstance(String param1, String param2) { + ProfileFragment fragment = new ProfileFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_profile, container, false); + } + + // TODO: Rename method, update argument and hook method into UI event + public void onButtonPressed(Uri uri) { + if (mListener != null) { + mListener.onFragmentInteraction(uri); + } + } + + @Override + public void onAttach(Context context) { + super.onAttach(context); + if (context instanceof OnFragmentInteractionListener) { + mListener = (OnFragmentInteractionListener) context; + } else { + throw new RuntimeException(context.toString() + + " must implement OnFragmentInteractionListener"); + } + } + + @Override + public void onDetach() { + super.onDetach(); + mListener = null; + } + + /** + * This interface must be implemented by activities that contain this + * fragment to allow an interaction in this fragment to be communicated + * to the activity and potentially other fragments contained in that + * activity. + *

+ * See the Android Training lesson Communicating with Other Fragments for more information. + */ + public interface OnFragmentInteractionListener { + // TODO: Update argument type and name + void onFragmentInteraction(Uri uri); + } +} diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/TimelineFragment.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/TimelineFragment.java new file mode 100644 index 0000000..4c387cd --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/TimelineFragment.java @@ -0,0 +1,108 @@ +package nl.myhyvesbookplus.tagram; + +import android.content.Context; +import android.net.Uri; +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + + +/** + * A simple {@link Fragment} subclass. + * Activities that contain this fragment must implement the + * {@link TimelineFragment.OnFragmentInteractionListener} interface + * to handle interaction events. + * Use the {@link TimelineFragment#newInstance} factory method to + * create an instance of this fragment. + */ +public class TimelineFragment extends Fragment { + // TODO: Rename parameter arguments, choose names that match + // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER + private static final String ARG_PARAM1 = "param1"; + private static final String ARG_PARAM2 = "param2"; + + // TODO: Rename and change types of parameters + private String mParam1; + private String mParam2; + + private OnFragmentInteractionListener mListener; + + public TimelineFragment() { + // Required empty public constructor + } + + /** + * Use this factory method to create a new instance of + * this fragment using the provided parameters. + * + * @param param1 Parameter 1. + * @param param2 Parameter 2. + * @return A new instance of fragment TimelineFragment. + */ + // TODO: Rename and change types and number of parameters + public static TimelineFragment newInstance(String param1, String param2) { + TimelineFragment fragment = new TimelineFragment(); + Bundle args = new Bundle(); + args.putString(ARG_PARAM1, param1); + args.putString(ARG_PARAM2, param2); + fragment.setArguments(args); + return fragment; + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_timeline, container, false); + } + + // TODO: Rename method, update argument and hook method into UI event + public void onButtonPressed(Uri uri) { + if (mListener != null) { + mListener.onFragmentInteraction(uri); + } + } + + @Override + public void onAttach(Context context) { + super.onAttach(context); + if (context instanceof OnFragmentInteractionListener) { + mListener = (OnFragmentInteractionListener) context; + } else { + throw new RuntimeException(context.toString() + + " must implement OnFragmentInteractionListener"); + } + } + + @Override + public void onDetach() { + super.onDetach(); + mListener = null; + } + + /** + * This interface must be implemented by activities that contain this + * fragment to allow an interaction in this fragment to be communicated + * to the activity and potentially other fragments contained in that + * activity. + *

+ * See the Android Training lesson Communicating with Other Fragments for more information. + */ + public interface OnFragmentInteractionListener { + // TODO: Update argument type and name + void onFragmentInteraction(Uri uri); + } +} diff --git a/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_dashboard_black_24dp.xml b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_dashboard_black_24dp.xml new file mode 100644 index 0000000..ae6a446 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_dashboard_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_home_black_24dp.xml b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_home_black_24dp.xml new file mode 100644 index 0000000..0c36320 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_home_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_notifications_black_24dp.xml b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_notifications_black_24dp.xml new file mode 100644 index 0000000..0262382 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/res/drawable/ic_notifications_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/MyHyvesBookPlusStagram/app/src/main/res/layout/activity_login.xml b/app/MyHyvesBookPlusStagram/app/src/main/res/layout/activity_login.xml new file mode 100644 index 0000000..f903f24 --- /dev/null +++ b/app/MyHyvesBookPlusStagram/app/src/main/res/layout/activity_login.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + +