[英]how to draw android textview shape with rightbottom gradient
我正在嘗試繪制具有底部陰影和右下角漸變的textview
矩形形狀。它看起來像在右下角折疊的頁面 ,但我嘗試過此操作,但這使我的形狀的右側部分顯示為黑色,我只希望右下角為黑色。
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<gradient
android:type="linear"
android:centerX="93%"
android:startColor="#FFffff00"
android:centerColor="#FFffff00"
android:endColor="#FF000000"
android:angle="315"/>
</shape>
請幫助謝謝
根據您的要求創建背景圖像並將其設置為textview。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.