0

Possible Duplicate:
Is there an easy way to add a border to the top and bottom of an Android View?

I have a shape rectangle as a background, now what I want to do is for the top and bottom borders to be somewhat transparent or disappear leaving only the left and right borders.

Is this possible? I tried uploading a screenshot but is blocked here in our company. Hope you got the point.

By shape rectangle I mean this example below:

    <?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid
        android:color="@android:color/transparent"
        />

    <stroke
        android:width="1.5dp"
        android:color="#8b7d6b"
        />
</shape>
Community
  • 1
  • 1
Lawrence Gimenez
  • 2,662
  • 4
  • 34
  • 52
  • here: http://stackoverflow.com/questions/1598119/is-there-an-easy-way-to-add-a-border-to-the-top-and-bottom-of-an-android-view – Th0rndike Apr 02 '12 at 11:56
  • I think the layer list will work for you - check this post http://stackoverflow.com/questions/3088111/android-shape-within-a-shape – mihail Apr 02 '12 at 11:58

0 Answers0