Yea my idea is largely a hack... Always better to confirm no standard method exists before pursuing hacks :)
On Apr 20, 8:49 am, Caspa <[email protected]> wrote: > Thanks for the suggestion patbenatar! > > I'm aware I could go for a 1px png drawable or draw the vertical line > as a View etc. > > However since there is a "line" shape, I assume there is a way of > drawing it vertically, or at least there SHOULD be. > > Can anyone confirm this being possible / not possible? > > Kacper > > On Apr 19, 11:37 am, patbenatar <[email protected]> wrote: > > > > > > > You could use a 1x1 Nine-Patch PNG.... > > > On Apr 18, 1:08 pm, Caspa <[email protected]> wrote: > > > > Hello, > > > > I'm trying to figure out how to define a vericalline(1px thick) to > > > be used as a drawable. > > > > to make a horizontal one, it's pretty straightforward: > > > > <shape xmlns:android="http://schemas.android.com/apk/res/android" > > >android:shape="line"> > > > <strokeandroid:width="1dp"android:color="#0000FF"/> > > > <sizeandroid:height="50dp" /> > > > </shape> > > > > The question is, how to make thislinevertical? > > > > Yes, there are workarounds, such as drawing a rectangle shape 1px > > > thick, but that complicates the drawablexml, if it consists of > > > multiple <item> elements. > > > > Anyone had any chance with this? > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "AndroidDevelopers" group. > > > To post to this group, send email [email protected] > > > To unsubscribe from this group, send email to > > >[email protected] > > > For more options, visit this group > > > athttp://groups.google.com/group/android-developers?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "AndroidDevelopers" group. > > To post to this group, send email [email protected] > > To unsubscribe from this group, send email > > [email protected] > > For more options, visit this group > > athttp://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 > athttp://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

