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
  • 2,981
  • 6
  • 30
  • 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,570
  • 3
  • 36
  • 36
0

You can follow this

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

ankita gahoi
  • 1,512
  • 1
  • 15
  • 28