【发布时间】:2013-03-13 06:50:42
【问题描述】:
这是我的 button_style.xml,我将其包含在我的按钮中。但是,我似乎仍然无法获得左侧的边框。有人可以帮我吗?
ps - 我的背景应该是透明的
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<layer-list>
<item android:left="2dp">
<shape android:shape="rectangle">
<stroke
android:width="1dp"
android:color="#999999"/>
</shape>
</item>
</layer-list>
</selector>
【问题讨论】:
-
你试过
android:drawableLeft -
@DjHacktorReborn:
android:drawableLeft不是解决方案。尝试其中之一:stackoverflow.com/questions/2422120/open-sided-android-stroke 或 stackoverflow.com/questions/9211208/…
标签: android button styles border