欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

Android 学习 - 每日打卡应用 - 实施每日打卡

最编程 2024-06-20 21:11:01
...
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:background="#DDDDDD" tools:context=".ClockActivity"> <TextView android:id="@+id/tv_title3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_marginStart="98dp" android:layout_marginTop="98dp" android:text="每日打卡" android:textColor="#000" android:textSize="50sp" android:textStyle="bold" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/et_dk_date" android:hint="日期" android:layout_below="@+id/tv_title3" android:layout_marginTop="15dp" ></EditText> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/et_dk_word" android:hint="每日关键字" android:layout_below="@+id/et_dk_date" android:layout_marginTop="10dp" ></EditText> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/et_dk_summary" android:hint="每日总结" android:layout_below="@+id/et_dk_word" android:layout_marginTop="10dp" ></EditText> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/et_dk_maxday" android:hint="连续最长天数" android:layout_below="@+id/et_dk_summary" android:layout_marginTop="10dp" ></EditText> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn_dk_add" android:text="打卡" android:textSize="30dp" android:layout_below="@+id/et_dk_maxday" android:layout_marginTop="20dp" android:layout_marginLeft="120dp" ></Button> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/tv_dk_keep" android:layout_below="@+id/btn_dk_add" android:textSize="30dp" ></TextView> </RelativeLayout>