diff --git a/functionality/AsparagusLogo.png b/functionality/AsparagusLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..87d9b004fbb02f8f9424e48adcf7cf64ef6e93d8 Binary files /dev/null and b/functionality/AsparagusLogo.png differ diff --git a/functionality/MainActivity.java b/functionality/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..74c24732f81709906b44284239a463307e7d62ee --- /dev/null +++ b/functionality/MainActivity.java @@ -0,0 +1,29 @@ +package com.example.complaintapp; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class MainActivity extends AppCompatActivity { + + Button button; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + button = findViewById(R.id.btnSign); + button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent myIntent = new Intent(this, NextActivity.class); + myIntent.putExtra("key", value); //Optional parameters + CurrentActivity.this.startActivity(myIntent); + } + }); + } + +} diff --git a/functionality/activity_main.xml b/functionality/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..34334c9e888b74d9c0ab0db4d3ac6e2f64470fdf --- /dev/null +++ b/functionality/activity_main.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/login" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#056F63" + tools:context=".MainActivity"> + + <EditText + android:id="@+id/txtName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/txt" + android:ems="10" + android:inputType="textPersonName" + app:layout_constraintEnd_toEndOf="@+id/lblPassword" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="@+id/lblPassword" + tools:layout_editor_absoluteY="311dp" /> + + <EditText + android:id="@+id/txtPassword" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/txt" + android:ems="10" + android:inputType="numberPassword" + app:layout_constraintEnd_toEndOf="@+id/btnSign" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="@+id/btnSign" + tools:layout_editor_absoluteY="417dp" /> + + <Button + android:id="@+id/btnSign" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/btn" + android:text="Sign In" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="parent" + tools:layout_editor_absoluteY="529dp" /> + + <TextView + android:id="@+id/lblName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="User Name:" + android:textAppearance="bold" + android:textColor="#020202" + android:textSize="20dip" + app:layout_constraintEnd_toEndOf="@+id/txtName" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="@+id/txtName" + tools:layout_editor_absoluteY="281dp" /> + + + <TextView + android:id="@+id/lblPassword" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Password:" + android:textAppearance="bold" + android:textColor="#020202" + android:textSize="20dip" + app:layout_constraintEnd_toEndOf="@+id/txtPassword" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="@+id/txtPassword" + tools:layout_editor_absoluteY="382dp" /> + + <ImageView + android:id="@+id/imageView" + android:layout_width="139dp" + android:layout_height="151dp" + app:srcCompat="@drawable/AsparagusLogo" + tools:layout_editor_absoluteX="142dp" + tools:layout_editor_absoluteY="42dp" /> + +</android.support.constraint.ConstraintLayout> \ No newline at end of file diff --git a/functionality/btn.xml b/functionality/btn.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfc45f42c41fd9e4b7599ea18698e4f0598d17a9 --- /dev/null +++ b/functionality/btn.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- res/drawable/rounded_edittext.xml --> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" android:padding="10dp"> + <solid android:color="#4D8017"/> + <corners + android:bottomRightRadius="15dp" + android:bottomLeftRadius="15dp" + android:topLeftRadius="15dp" + android:topRightRadius="15dp" + /> + <gradient + android:startColor="#0A750A" + android:endColor="#9A173609" + /> +</shape> \ No newline at end of file diff --git a/functionality/ic_launcher_background.xml b/functionality/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..0d025f9bf6b67c63044a36a9ff44fbc69e5c5822 --- /dev/null +++ b/functionality/ic_launcher_background.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> diff --git a/functionality/txt.xml b/functionality/txt.xml new file mode 100644 index 0000000000000000000000000000000000000000..b33d31579a7fedb519c1af7eeb69f9305507b7ee --- /dev/null +++ b/functionality/txt.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- res/drawable/rounded_edittext.xml --> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" android:padding="10dp"> + <solid android:color="#A6AF9F"/> + <corners + android:bottomRightRadius="15dp" + android:bottomLeftRadius="15dp" + android:topLeftRadius="15dp" + android:topRightRadius="15dp"/> +</shape> \ No newline at end of file