Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me fix the code and make it can be work done there are 2 xmls ltemlist .xml list-item xml ==== how to fix

please help me fix the code and make it can be work done

there are 2 xmls

ltemlist .xml

       

list-item xml

     

====

how to fix this ,to make a item list like this

Recycler View to display 10 or more such lists, and add a delete icon, click the delete icon to delete this item

map.put("name","abc"); map.put("name","abc"); list.add(delete);

-----

Android Studio that uses a Recycler View to show list of cars and their makers. The design of the app should contain two Text Views and one Image View. In the first Text View, the name of the cars should be displayed. In the second Text View, the maker of the car should be displayed. The Image View should show a delete icon. The app should have a design like shown below in the first screenshot. You are free to use any layout you want, e.g., ConstraintLayout, LinearLayout or RelativeLayout etc. You can also use combination of these layouts. the click of the delete icon on a row, that particular row should be delete. Please make sure the row is deleted only when the delete icon in that row is clicked. The row should NOT be deleted on the click on any other place than the delete icon. The second screenshot above shows the state of the app after deleting some of the records from the Recycler View on the click of delete icons.

Please note the followings:

You are required to use a Recycler View to design this app

Make sure to have at least 10 different items in the Recycler View

Create a separate Adapter class to handle Recycler View Adapter

Put all the items, e.g., maker and car names in string.xml and get them in Java file

Create a separate row_layout.xml for holding each row of the Recycler View

----------------please show me a code that can be run with .

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

What is the essence of the discounted cash flow methods?

Answered: 1 week ago