效果图如下所示:
由于我仿的京东是分模块的,所以,这次主要描述秒杀模块!
首先设置好时间的背景
drawable文件下创建shape_miaosha_time.xml
<?xml version=1.0 encoding=utf-8?>
<shape xmlns:android=http://schemas.android.com/apk/res/android
android:shape=rectangle>
<solid android:color=#000></solid>
<corners android:radius=2.5dp></corners