diff --git a/OlympusServices/app/build.gradle b/OlympusServices/app/build.gradle index 26d484b..4a8aefa 100644 --- a/OlympusServices/app/build.gradle +++ b/OlympusServices/app/build.gradle @@ -26,4 +26,8 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' + implementation 'com.jaredrummler:material-spinner:1.2.5' + implementation 'com.android.support:design:28.0.0-alpha3' + implementation 'com.rengwuxian.materialedittext:library:2.1.4' + } diff --git a/OlympusServices/app/src/main/AndroidManifest.xml b/OlympusServices/app/src/main/AndroidManifest.xml index 7f52612..167ae5c 100644 --- a/OlympusServices/app/src/main/AndroidManifest.xml +++ b/OlympusServices/app/src/main/AndroidManifest.xml @@ -14,6 +14,7 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> + @@ -28,7 +29,13 @@ android:name="preloaded_fonts" android:resource="@array/preloaded_fonts" /> - + + + + + \ No newline at end of file diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/Main.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/Main.java index 8ed92e7..f5722d9 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/Main.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/Main.java @@ -2,6 +2,8 @@ package com.uottawa.olympus.olympusservices; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.content.Intent; +import android.view.View; public class Main extends AppCompatActivity { @@ -9,5 +11,7 @@ public class Main extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); + } + } diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java index 7c3ce39..770795e 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/SignUp.java @@ -2,13 +2,22 @@ package com.uottawa.olympus.olympusservices; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import com.jaredrummler.materialspinner.MaterialSpinner; +import android.support.design.widget.Snackbar; public class SignUp extends AppCompatActivity { - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up); + MaterialSpinner spinner = findViewById(R.id.RoleInput); + spinner.setItems("Ice Cream Sandwich", "Jelly Bean", "KitKat", "Lollipop", "Marshmallow"); + spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener() { + + @Override public void onItemSelected(MaterialSpinner view, int position, long id, String item) { + Snackbar.make(view, "Clicked " + item, Snackbar.LENGTH_LONG).show(); + } + }); } public static void main(String[] args){ diff --git a/OlympusServices/app/src/main/res/drawable/background.png b/OlympusServices/app/src/main/res/drawable/background.png deleted file mode 100644 index 8d909a0..0000000 Binary files a/OlympusServices/app/src/main/res/drawable/background.png and /dev/null differ diff --git a/OlympusServices/app/src/main/res/layout/activity_main.xml b/OlympusServices/app/src/main/res/layout/activity_main.xml index 2051694..8ea5186 100644 --- a/OlympusServices/app/src/main/res/layout/activity_main.xml +++ b/OlympusServices/app/src/main/res/layout/activity_main.xml @@ -16,16 +16,17 @@