Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要有一个按钮的角渐变。即光线从左下角向上填充。
我试过这样:
<gradient android:angle="90" android:startColor="#E60000" android:centerColor="#800000" android:endColor="#E60000" android:type="sweep" />
然而它只是从右到左填充光。有人可以帮帮我吗?
尝试给角度值 135 或 225
android:angle="135"或者android:angle="225"
android:angle="135"
android:angle="225"