Answer the question
In order to leave comments, you need to log in
How to dynamically add elements to Relative Layout?
Hello everyone, I'm a little bit familiar with android development. I set a small task for myself, to make an audio player, the actual question is how to dynamically (programmatically) add elements to the relative layout to get something like this
: That is, you need to programmatically change properties such as: layoutWidth, layoutHeight, background, marginTop, marginStart, parentTop, parentStart, layoutAlignBaseLine, layoutAlignBottom, layoutAlignEndOf.
Many thanks in advance to everyone!
Answer the question
In order to leave comments, you need to log in
Here.
Based on your screenshot, I can assume that you need a regular list, in your case, an audio list, then RecyclerView will do
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question