圆圈里面是个叉号
16lz
2021-01-23
1 <FrameLayout 2 android:id="@+id/error_frame" 3 android:layout_width="53dp" 4 android:layout_height="53dp" 5 android:layout_marginTop="5dp" > 7 <View 8 android:layout_width="match_parent" 9 android:layout_height="match_parent" 10 android:background="@drawable/error_circle" /> 12 <ImageView 13 android:id="@+id/error_x" 14 android:layout_width="match_parent" 15 android:layout_height="match_parent" 16 android:contentDescription="@string/app_name" 17 android:scaleType="center" 18 android:src="@drawable/error_center_x" /> 19 </FrameLayout>
error_circle.xml
1 <?xml version="1.0" encoding="utf-8"?> 2 <shape 3 android:shape="oval" 4 xmlns:android="http://schemas.android.com/apk/res/android"> 5 <solid android:color="@android:color/transparent" /> 6 <stroke 7 android:color="@color/error_stroke_color" 8 android:width="3dp" /> 9 </shape>
error_center_x.xml
1 <?xml version="1.0" encoding="utf-8"?> 2 <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > 3 4 <item> 5 <rotate 6 android:fromDegrees="45" 7 android:pivotX="50%" 8 android:pivotY="50%" 9 android:toDegrees="45" > 10 <shape android:shape="rectangle" > 11 <solid android:color="@color/error_stroke_color" /> 12 <corners android:radius="4dp" /> 13 <size 14 android:height="3dp" 15 android:width="28dp" /> 16 </shape> 17 </rotate> 18 </item> 19 20 <item> 21 <rotate 22 android:fromDegrees="315" 23 android:pivotX="50%" 24 android:pivotY="50%" 25 android:toDegrees="315" > 26 <shape android:shape="rectangle" > 27 <solid android:color="@color/error_stroke_color" /> 28 29 <corners android:radius="4dp" /> 30 31 <size 32 android:height="3dp" 33 android:width="28dp" /> 34 </shape> 35 </rotate> 36 </item> 37 38 </layer-list>
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer