【发布时间】:2015-04-30 07:17:14
【问题描述】:
我正在使用这个
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="7sp" />
<gradient
android:startColor="#333"
android:centerColor="#ffffff"
android:endColor="#333"
android:angle="90" />
<stroke android:width="1dp" android:color="#FFffffff" />
</shape>
</item>
但这并没有达到预期的效果。
【问题讨论】:
-
嘿,你在使用轮子库吗,看起来和那个很像
-
是的,我只使用@apk
-
是否必须成为
GradientDrawable?用这个创建一个 9 补丁将是微不足道的。 -
@Payal 你想得到什么效果?你能用具体的模型来描绘它吗?
-
我只使用 9 个补丁图像修复了它..谢谢大家
标签: android gradient xml-drawable