IanTDuncan / MealTime

Project for CSC 480
0 stars 0 forks source link

Addition of functions to User_info_activity.xml #111

Closed bdshanks-28 closed 4 months ago

bdshanks-28 commented 4 months ago

Addition of functions to User_info_activity.xml

Description:

Addition of username and user email view along with a button to reset password redirecting to the appropriate page.

Steps to Reproduce:

N/A

Expected vs. Actual Behavior:

N/A

Code Snippets:

N/A

Environment Details:

Operating System: Android Kotlin Version: 1.5.21 Android Studio Version: 4.2.1 Gradle Version: 7.0.2

For Issue Resolution:

Discussed what will be on this page with team.

For Investigations/Research:

N/A

Current Status:

Completed

bdshanks-28 commented 4 months ago

Addition of functions to User_info_activity.xml

Description:

Addition of username and user email view along with a button to reset password redirecting to the appropriate page.

Steps to Reproduce:

N/A

Expected vs. Actual Behavior:

N/A

Code Snippets:

<?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">

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <!-- Back button -->
    <Button
        android:id="@+id/button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="25dp"
        android:layout_marginTop="10dp"
        android:text="Back" />

    <!-- Inidcates username -->
    <TextView
        android:id="@+id/usernameView"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_marginStart="50dp"
        android:layout_marginTop="75dp"
        android:text="Username" />

    <!-- Username goes here -->
    <EditText
        android:id="@+id/username"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/usernameView"
        android:layout_marginStart="4dp"
        android:layout_marginTop="0dp"
        android:layout_toEndOf="@+id/usernameView"
        android:ems="10"
        android:inputType="text" />

    <!-- Indicates user email -->
    <TextView
        android:id="@+id/emailView"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:layout_below="@id/usernameView"
        android:layout_marginStart="50dp"
        android:layout_marginTop="50dp"
        android:text="User email" />

    <!-- User Email -->
    <EditText
        android:id="@+id/editTextTextEmailAddress"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/usernameView"
        android:layout_marginStart="5dp"
        android:layout_marginTop="45dp"
        android:layout_toRightOf="@id/emailView"
        android:ems="10"
        android:inputType="textEmailAddress" />

    <!-- Reset Password button -->
    <Button
        android:id="@+id/passwordReset"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true"
        android:layout_alignParentBottom="true"
        android:layout_gravity="center|center_horizontal|center_vertical"
        android:layout_marginStart="127dp"
        android:layout_marginBottom="401dp"
        android:text="RESET PASSWORD" />

</RelativeLayout>

Environment Details:

Operating System: Android Kotlin Version: 1.5.21 Android Studio Version: 4.2.1 Gradle Version: 7.0.2

For Issue Resolution:

Discussed what will be on this page with team.

For Investigations/Research:

N/A

Current Status:

Completed