IanTDuncan / MealTime

Project for CSC 480
0 stars 0 forks source link

Addition of functions to policies_about_activity.xml #107

Closed bdshanks-28 closed 4 months ago

bdshanks-28 commented 4 months ago

Addition of functions to policies_about_activity.xml

Description:

Adding in buttons to become hyperlinks to send users to our policies. Discussed that with Cade so there would be no need for extra pages.

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

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

<Button
    android:id="@+id/buttonForTerms"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="100dp"
    android:layout_marginTop="100dp"
    android:text="Terms and Conditions" />

<Button
    android:id="@+id/buttonPrivacyPolicy"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="50dp"
    android:layout_marginTop="50dp"
    android:text="Privacy Policy and Security Terms" />

Environment Details:

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

For Issue Resolution:

N/A

For Investigations/Research:

Found that editing Kotlin/Source code rather than the visual editor yielded the results I wanted. All editing will be done like this going forward.

Current Status:

Completed