仅显示矩形的左右边框

时间:2012-04-02 11:50:22

标签: android

  

可能重复:
  Is there an easy way to add a border to the top and bottom of an Android View?

我有一个形状矩形作为背景,现在我想做的是顶部和底部边框有点透明或消失,只留下左右边框。

这可能吗?我尝试上传截图,但在我们公司阻止了。希望你明白这一点。

形状矩形我的意思是下面这个例子:

    <?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>

0 个答案:

没有答案