[英]How do I get the blur effect on Android?
這看起來像是漸變色的背景,具有淡紅色的中心色和白色的邊框色。
您可以使用此漸變生成器來創建漸變。 例如,在您的drawables-folder中將gradient.xml
代碼另存為gradient.xml
並將其用作視圖的背景。
這可能是您的漸變
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<gradient
android:type="linear"
android:centerX="50%"
android:startColor="#FFFFFFFF"
android:centerColor="#FFFF8A8A"
android:endColor="#FFFFFFFF"
android:angle="90"/>
</shape>
結果 :
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.