If you wanted to pursue view resizing, I'd subclass some type of view and override onMeasure(), which would take the image size into account.
An alternative is to create your own Drawable subclass that has the behavior you desire: repeating a bitmap as many times as would fit, stretching or leaving margins on the sides (this is up to you). -- K 2012/8/30 Pau Rodríguez Coloma <[email protected]> > > Thanks MagouyaWare for your help, but there are a problem with this > solution. First, there are a known issue with dashed lines in ICS ( > http://code.google.com/p/android/issues/detail?id=29944) that makes it > always drawn as a solid line. > > On the other hand, if I use this shape, at the end I've the same problem, > the last line can be cropped. > > I think the best solution may be the Roman Guy's solution, but I need some > help for implement this. Please, if anyone can provide me some example code > I'll appreciate it so much. > >> >>> >> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

