If you can accept stretching instead of repeating, you could use a very small 9-patch.
On Aug 29, 1:08 pm, Pau Rodríguez Coloma <[email protected]> wrote: > Thanks Romain for your help. This is what I was thinking that at the end I > have to do. The design idea is that the line fills the screen width except > a left and right margin (about 40dp). So if I'm understanding well your > response, I need to use an ImageView like this: > > <ImageView > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:layout_marginLeft="40dp" > > android:layout_marginRight="40dp" > > android:src="@drawable/separator" > > android:layout_centerHorizontal="true"/> > > and in onCreate method of my activity I've to check the initial width of > the ImageView and after this, set it to the nearest multiple of the size of > my PNG. Is it? > > So, Can you give me some example code about it? > > Thanks in advance. -- 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

