0

I want to repeat image in a layout. Number of times the image should be repeated , will be given dynamically. Image should be displayed Horizontally. How can I do this?

Please help me. Looking for your reply. Thanks.

Krishna Suthar
  • 3,071
  • 6
  • 31
  • 37

2 Answers2

1

Not most efficient ways:

either you can create a single instance of you bitmap and set this in multiple imageviews created at runtime in a linear layout added in XMl.

or Override a view and draw the image using canvas multiple time at runtime.

Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36
0

You can follow this

http://androidblogger.blogspot.in/2009/01/how-to-have-tiled-background-cont.html

ankita gahoi
  • 1,532
  • 2
  • 15
  • 28