S
S
Saveli Tomak2017-03-25 15:21:31
Android
Saveli Tomak, 2017-03-25 15:21:31

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
7689106647824ddb8da5c1d106c56f55.png
: 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

1 answer(s)
V
Vlad Kovalev, 2017-03-25
@aresouji

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 question

Ask a Question

731 491 924 answers to any question