COP 2660, Programming for Mobile Devices
Using Android Studio
Create the working application as You can design a different listView of your choice.
Try to have at-least 3 items in your listView.
Zip your project file link and upload the code
Purpose: is designed to assess the implementation of ListView activities.
HERE ARE STEPS TO COMPLETE THIS ASSIGNMENT QUESTIONS .PLEASE FOLLOW AS I CAN NOT DIRECTLY UPLOAD ZIP ON THIS PLATFORM I AM PROVIDING PROPER STEP BY STEP SOLUTION:
package com.example.jigyasagyanani.list_demo; //change this pacakage name import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import org.w3c.dom.Text; import java.util.zip.Inflater; public class CustomAdapter extends BaseAdapter { LayoutInflater inflater; Context context; int imag[]; String name[]; public CustomAdapter(Context context,String name[],int imag[]) { this.context=context; this.imag=imag; this.name=name; inflater=LayoutInflater.from(context); } @Override public int getCount() { return name.length; } @Override public Object getItem(int position) { return position; } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { convertView=inflater.inflate(R.layout.row_list_item,null); TextView t1=(TextView)convertView.findViewById(R.id.name); ImageView imageView=(ImageView)convertView.findViewById(R.id.listimg); t1.setText(name[position]); imageView.setImageResource(imag[position]); return convertView; } }
package com.example.jigyasagyanani.list_demo; //change pacakge name here import android.app.Activity; import android.os.Bundle; import android.widget.ListView; public class DemoList extends Activity{ ListView list; int images[]={R.mipmap.ic_launcher,R.mipmap.mybg1,R.mipmap.mybg2}; String name[]={"android","iphone","ios"};
CustomAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.demolist); initView(); } private void initView(){ list=(ListView)findViewById(R.id.list); adapter=new CustomAdapter(DemoList.this,name,images); list.setAdapter(adapter); } }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.jigyasagyanani.list_demo.demolist"> <ListView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/list" /> </LinearLayout>
<?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"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:padding="20dp"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/listimg" android:src="@mipmap/ic_launcher"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Android" android:padding="20dp" android:textColor="@android:color/holo_red_dark" android:gravity="center" android:id="@+id/name"/> </LinearLayout> </LinearLayout>
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.jigyasagyanani.list_demo"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".DemoList"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
COP 2660, Programming for Mobile Devices Using Android Studio Create the working application as You can...
Using Android Studios. Scenario: You recently started working as the mobile app developer for a University and have been assigned to build a mobile app that calculates the students' grade. Your app should contain following screens: Screen 1 Labels for subject1, subject2, and subject3 Textboxes for subject1, subject2, and subject3 Labels for MaxGrade, MinGrade, and Avg.Grade Submit button Once user clicks submit button, you need to display letter grade in a label Screen 2 Screen that allows students to register...
Android Problem Using JAVA Problem: You need to create an app on Android Studios that allows users to register and login into the system. The focus of this project is for you to create an app with several activities and has data validation. You should have for your app: A welcome screen (splash screen) with your app name and a picture. You should then move to a screen that asks the user for either to log in or to register....
Q) MyBooks is an android application has a homepage "Activity_MyBooks.xml" that shows a simple list. This list displays only the book title for each book in the user’s book database. The database has a table name “Books” which has the following fields (Book_id, BookTitle, Author, Year). This App connected to the Database by BookstDataSource class and BooksDBHelper class. Explain the following questions on your own words and no need to write a code. Explain how to create the Layout for...
Assignment Content You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost of their sale, including taxes. Create a C++ program that does the following: Include the proper header and make sure you properly comment your program. Also, make sure you use proper coding conventions so your program runs and compiles correctly. Compress all your Microsoft® Visual Studio® source code files from the console application folder into a ZIP file. Submit your assignment. Calculates sales tax and total cost based on the type of purchased product using the following categories and tax percentages: Category 1 - Clothing: 6% Category 2 - Beauty products: 7% Category 3 - Grocery: 3% Category 4 - Gardening: 6% Category 5 - School supplies: 3% Category 6 - Tobacco products: 10% Creates an array to store the numbers users input and uses the switch statement to calculate the sales tax and final cost based on the category of the purchased product Prompts the user for category and price of the product Calculates and displays the final cost
Can you solve this proble by using C# application? C# is one of programming languages supported by Visual Studio 2015. It combines the features of Java and C ++ and is suitbale for rapid application development. A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4% and the county sales tax rate is 2%. Create an...
Create a working proof of concept of one of the following applications which meets all of the minimum requirements. The application may be written in any programming language(s). The application should be sent with the following: ● All of the source code required for building ● A completed binary of the application (if applicable) ● Any required database files (if applicable) Each application requires a README. Please ensure the README includes the following components: ● Which application you choose to...
PHP Programming Question. Use the techniques you learned so far to create an Address Book application that stores names, e-mail addresses, and phone numbers in a text file. Validate all input fields and include functionality that allows the user to view the address book. Also, include code that sorts the address book by name and deletes duplicate entries. Each page in the application should have a link back to the main page. Be creative and add extra features if you...
Understand the Application For this lab you will create a basic application programming interface (API) for spawning multiple threads in a program using Python3's threading module. The Program Spec Write a program that creates a minimum of two threads with different target functions. Each thread will perform the work of each function. Each function will compute a task (described below) and print out a result. Implementation Details Write a program that creates a minimum of two threads using Python's threading...
Project 1. Dog Door You are asked to create a dog door for a client. You are programming the remote that will do things such as open and close, etc. You must create both the program and write a white paper explaining your design • It should open (saying "The dog door is open.") and close (saying "The dog door is closed.). • It should take into account a dog going outside and coming back in; it should open when...
Programming Concepts cin/cout variables/types Functions Reference structs Task Summary: For this first Quest you I have set up a program in Visual Studio that will use operation between fractions. I have written a basic code example that does all the resources that you need to follow. Your job is to complete the exercises presented below in quest2.cpp. For this assignment you will learn and demonstrate how to: Work with functions use Past-by-Value and Past-by-Reference. use structs. use cin to get...