Android - Custom List (Overlay elements that stay on certain positions in the list)

1.5k views Asked by At

I want to create a custom-list in android like on this picture:

enter image description here

how should I create those custom elements in java-code? I thought of creating a custom_element_layout.xml and then inflate it width a given height in java... is this possible?

and how can I make them overlaying the listelements and set their position? I haven't found a method in android's View.class that is called "setPosition(x,y)" or something like that.

1

There are 1 answers

0
Kevin Qiu On

I found an example that seems to explain what you are looking for here. There should be a link to the source somewhere on the page.