Develop an app in 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. On 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.
Develop an app in 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.
On 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.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps