Home > Mobile >  How to use the elevation border no shadow on the implementation, other boundary has a shadow effect
How to use the elevation border no shadow on the implementation, other boundary has a shadow effect

Time:09-26

Similar to the paper cocking a Angle, on the border is connected to the background of feeling, it is best to use shape directly solve
You have greatly through this effect, or a similar effect

CodePudding user response:

 
<? The XML version="1.0" encoding="utf-8"?>
XMLNS: aapt="http://schemas.android.com/aapt" & gt;

Android: width="500 dp"
Android: height="500 dp" & gt;



Android: width="300 dp"
Android: height="100 dp"
Android: gravity="center"
Android: top="100 dp" & gt;
Android: width="300 dp"
Android: height="100 dp"
Android: viewportWidth="300"
Android: viewportHeight="100" & gt;
Android: pathData="https://bbs.csdn.net/topics/M150, L300 0, 0, 295, 10" & gt;
Android: startColor="# 50 CCCCCC
"Android: endColor="# 30 CCCCCC
"Android: startX="150"
Android: startY="0"
Android: endX="300"
Android: endY="15"
Android: type="linear" & gt;





Android: width="300 dp"
Android: height="100 dp"
Android: bottom="100 dp"
Android: gravity="center" & gt;




Can refer to, can not directly use, the need to adjust

CodePudding user response:


preview
  • Related