【发布时间】:2017-08-10 10:07:01
【问题描述】:
注意:更新问题!
我想制作图片中提到的渐变
居中的灰色是一条线,我希望它与左右两边合并
已尝试解决方案
Android drawable with background and gradient on the left
我找不到更多关于自定义可绘制渐变的信息
<shape android:shape="rectangle">
<gradient
android:angle="0"
android:centerColor="@color/white"
android:endColor="@color/gray"
android:startColor="@color/gray"
android:type="linear"
/>
</shape>
我有这两张图片,想用可绘制的..
提前谢谢..
PS:我也尝试了针对我的问题得到的答案,但我认为这种渐变是不可能的,我已经等待了 3 个月的解决方案。
【问题讨论】:
-
对我的要求没有用
标签: android android-layout android-custom-view drawable android-drawable