1.布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置闹钟一次"
android:onClick="setAlarmone"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="设置闹钟周期"
android:onClick="setAlarmcycle"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="取消设置闹钟周期"
android:onClick="mcycle"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
Android之实现闹钟
最新推荐文章于 2025-05-13 16:51:16 发布