Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(0) Create UI with appropriate design elements to support a user logging in (1 screen). Your UI must include a login screen, that contains the

(0)

Create UI with appropriate design elements to support a user logging in (1 screen). Your UI must include a login screen, that contains the following:Fields for the user to provide a username and password

Note that the password element should be configured in a way that obscures any text that is typed into the field. This means the text will need to be visually converted into dots.

A button for the user to submit their username and password

A button for the user to create a new login if it is their first time using the application

Note that to simplify the account creation process, you can use the same login screen for this purpose. Create a button that will add the username and password into the database if it does not already exist.

Any other fields or elements that are necessary to make your application visually appealing, intuitive, and usable

Create UI with appropriate design elements to display database information as a grid (1 screen). Your UI must include a data display screen, that contains the following:

A grid for displaying data

Logical labels and headers for the data that will be displayed

A button for adding data to the grid

A button on each row for deleting that row of data from the grid

A mechanism that allows a user to change the value associated with each grid item (e.g. the number of a specific item in an inventory or the date of an event)

Any fields needed to add data to your grid, though this can be on a new screen if you feel the layout is better for your app

Create UI with appropriate design elements to prompt a user for permission to communicate with the text messaging app and display information based on permission (1 screen). Your UI will need to include a button, or alternate mechanism, that would cause the app to ask a user for permissions so it can communicate with SMS messaging. A user that grants permission will then receive automated system notifications based on which option you chose in Project One. These notifications would be low inventory, an upcoming event, or reaching a goal weight. If the user denies access to the permissions needed for the app to interact with SMS, then your app should still continue to function overall but should not provide any notifications.

Develop visual hierarchy and consistency between UI elements on different screens. The layout for each screen should follow an intuitive visual flow, have a consistent theme, and be creative but still easy to understand. Ask yourself the following to help determine if your visual hierarchy is successful:

Does my focus order match with the steps a user would follow when completing a task?

Does my grouping organize content in a way that makes sense for the user?

Do my transitions have consistency between screens and tasks?

...CODE...

activity_main.xml:

    

...MainActivity.java...

package com.example.garrett_collins_3_2;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.text.Editable;

import android.text.TextWatcher;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

private EditText nameText;

private TextView textGreeting;

private Button SayHello;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

nameText = (EditText) findViewById(R.id.nameText);

textGreeting = (TextView) findViewById(R.id.textGreeting);

SayHello = (Button) findViewById(R.id.buttonSayHello);

SayHello.setEnabled(false);

nameText.addTextChangedListener(new TextWatcher() {

@Override

public void beforeTextChanged(CharSequence s, int start, int count, int after) { }

@Override

public void onTextChanged(CharSequence s, int start, int before, int count) { }

@Override

public void afterTextChanged(Editable s) {

if (s.toString().equals("")){

SayHello.setEnabled(false);

} else {

SayHello.setEnabled(true);

}

}

});

}

/**

* onclick listener for button SayHello

* @param v of {@link View]}

*/

public void SayHello(View v){

String name = nameText.getText().toString();

if (name.equals("")){

textGreeting.setText("You must enter a name");

}else {

textGreeting.setText("Hello, "+name+"!");

}

}

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

What are the current trends in software platforms?

Answered: 1 week ago

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago