android - 如何使锐渐变可绘制

标签 android android-layout drawable

我想像这样制作清晰的黑白渐变 enter image description here

我所做的就是这个

enter image description here

这是我的可绘制文件

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
    android:startColor="#000"
    android:endColor="#fff"
    android:centerColor="#fff"
    />
</shape>

知道如何制作吗!

最佳答案

有一个很棒的网站,只需转到那里并更改为“android”选项卡即可。 这是链接:Angrytools.com

关于android - 如何使锐渐变可绘制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34290815/

相关文章:

android - 等价于约束布局 0dp

android - 如何重用从 XML 创建的 View ?

android - CoordinatorLayout 和 AppBarLayout 高程

android - android :icon ="@drawable/my_icon" and android:icon ="?my_icon"?之间的区别

java - setBackgroundDrawable 工作正常;直到按下另一个按钮,为什么?

android - 按下后退按钮时保存 tabLayout 位置

android - 如何从直接下载链接在android webview中下载文件

android - RecyclerView onClick 无法正常工作?

android - 完成 BroadcastReceiver 的 Activity - Android

android - SlidingDrawer 句柄的可绘制对象在哪里定义?