Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Creating an Android App using UI Objectives: Learn to use Android Studio to create the app in Tutorial 1: Hello and Goodbye Get familiar with

Creating an Android App using UI

Objectives:

Learn to use Android Studio to create the app in Tutorial 1: Hello and Goodbye

Get familiar with the usage of resource files, such as drawable, color and string

Create an AVD, and Run the app in Android Emulator or run the app on physical phone

Requirements:

image text in transcribed

image text in transcribed

1. Go to Color Tool - Material Design website, choose 2 colors as the primary color and secondary color for your app. Download the color xml file and apply it to your project.

2. When click the button, it toggles between two messages. Change the text Hello to Hello Android, Goodbye to Goodbye Android. Create string resources in strings.xml file.

3. When click the image, display hello from image in textview, also display this message in Logcat window.

4. When click the screen, toggle between solid background color you choose and the original background image.

To use the background image, use code

yourlayout.setBackground(getResources().getDrawable(background));

Results:

Screenshots of the app running on Emulator

idea .gitignore HelloGoodbye-Resources.iml misc.xml modules.xml workspace.xml HelloGoodbye-Resources > drawable-mdpi > drawable-xhdpi > drawable-xxhdpi IIll External Libraries capp Q manifests B AndroidManifest.xml - Dijava Eit com.cornez.hellogoodbye (5) \& MainActivity v Dil com.cornez. he llogoodbye (androidtest) Applicationtest Cires v Drawable Dilic_launcher.png (4) A K._launcher.png fhdpo A ic_launcher.png indpi) A ic_launcher.png (ixhdpe A i. luuncher,png (xxkdpe) bas layout Bi activity main.xml v III menu R menu_main.xml v Divalues Dirdimens.xml (2) Bredimens.xml Pimens.xml (w820dp) strings. xml styles.xml (C) Gradle Seripts (V) buld-gradle (Project HelloCoodbye) buld.grade (Module: app) gradle-wrapper.properties (Cradle Version) gradie.properties (Project Propertiss) settings.gradle (Project Settings) local.preperties GOK Locabion)

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

More Books

Students also viewed these Databases questions

Question

Identify conflict triggers in yourself and others

Answered: 1 week ago