简体   繁体   中英

how to draw android textview shape with rightbottom gradient

I am trying to draw textview rectangle shape with bottom shadow and rightbottom corner gradient.which look like page folded at right bottom corner I have tried this,but this giving me right part of shape displaying black, i want only rightbottom corner to be black.

    <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>

please help thanks

根据您的要求创建背景图像并将其设置为textview。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM