Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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:
This code is responsible for the fact that the Item will swipe:
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 questionAsk a Question
731 491 924 answers to any question