0

I'm trying to create an app. I have 4 TextViews, and 4 ImageViews. If I want to put something else at the top of the layout, I have to move all 4 TextViews and all 4 ImageViews down, but I don't want to move them each separately (it takes more time). I`m thinking if there is any possibility to put all of them in a List or something like this, and move all of them only by one xml code.

For example

<TextView/>
 <ImageView/>
<TextView/>
 <ImageView/>
<TextView/>
 <ImageView/>

and move down all of them by one code to make free space for another TextView and ImageView.

Mark
  • 9,604
  • 5
  • 36
  • 64
SamH
  • 41
  • 1
  • 8

1 Answers1

1

Are they all stacked up like that? Try putting them in a LinearLayout, then set attribute layout_marginTop to how much you want them to go down.

Lendl Leyba
  • 2,287
  • 3
  • 34
  • 49