E
E
etozhesano2020-07-01 22:43:22
Java
etozhesano, 2020-07-01 22:43:22

What is this element?

Hello. To study Android, I took this application as an example ( https://github.com/avjinder/Minimal-Todo) and create my own by analogy (simplified).

Interested in the moment, after creating a reminder, an element is created that can be deleted with a swipe. What is this element? What is its normal name (I'm talking about "test" and "1" on the screen)? I understand that Google has a million information on this issue, but I can’t figure out what to write in the request specifically.

If possible, show the section of code that is responsible for creating and displaying this element, I would be very grateful

5efce74651cb2409918733.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Vodakov, 2020-07-01
@etozhesano

This is an Item in RecyclerView, a layout is created for it, which determines how it will look and what elements it will consist of.
In the Minimal-Todo project, the layout of the element is here: https://github.com/avjinder/Minimal-Todo/blob/mast...
I understood this from this piece of code:
5efced2c9b9fe948144892.png
This code is responsible for the fact that the Item will swipe:
5efceded923b3937444767.png
In general, the project is not the best in order to learn from it. The code is very poorly organized.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question