每日打卡APP界面优化与功能完善
每日打卡APP界面优化与功能完善
今天把app的界面完善了一下,让其更为美观
我们可以通过在drawable中创建bg_xml文件
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="1dp" android:color="#999999"/> <corners android:radius="10dp"/> </shape>
然后再在输入框设置背景,就可以实现矩形输入框了
android:background="@drawable/bg_edit"
同时,app拥有了判断现在日期的能力,如果今天已经打过卡了,将不能再打卡