gave credit to style repos, removed admin option from sign up drop down
This commit is contained in:
parent
ab84abd042
commit
6f9590413f
4 changed files with 8 additions and 1 deletions
Binary file not shown.
|
@ -11,7 +11,7 @@ public class SignUp extends AppCompatActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_sign_up);
|
||||
MaterialSpinner spinner = findViewById(R.id.RoleInput);
|
||||
spinner.setItems("Admin", "User", "Service Provider");
|
||||
spinner.setItems("User", "Service Provider");
|
||||
spinner.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<String>() {
|
||||
|
||||
@Override public void onItemSelected(MaterialSpinner view, int position, long id, String item) {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
android:textSize="36sp"
|
||||
app:fontFamily="@font/julius_sans_one" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/UsernameInput"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -38,6 +39,7 @@
|
|||
app:met_primaryColor="?colorAccent"
|
||||
app:met_singleLineEllipsis="true" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/PasswordInput"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -33,12 +33,14 @@
|
|||
android:textColor="#6d81a5"
|
||||
android:textSize="20sp" />
|
||||
|
||||
// component used from https://github.com/jaredrummler/MaterialSpinner
|
||||
<com.jaredrummler.materialspinner.MaterialSpinner
|
||||
android:id="@+id/RoleInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginBottom="10dp" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/UsernameInput"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -51,6 +53,7 @@
|
|||
app:met_primaryColor="?colorAccent"
|
||||
app:met_singleLineEllipsis="true" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/PasswordInput"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -63,6 +66,7 @@
|
|||
app:met_primaryColor="?colorAccent"
|
||||
app:met_singleLineEllipsis="true" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/FirstNameInput"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -75,6 +79,7 @@
|
|||
app:met_primaryColor="?colorAccent"
|
||||
app:met_singleLineEllipsis="true" />
|
||||
|
||||
//component used from https://github.com/rengwuxian/MaterialEditText
|
||||
<com.rengwuxian.materialedittext.MaterialEditText
|
||||
android:id="@+id/LastNameInput"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue