Android开发之TimePicker控件用法实例详解

2019-12-10 19:02:43于丽

main.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://www.easck.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  >
<TextView 
  android:id="@+id/tv_timepicker_display"
  android:layout_width="fill_parent" 
  android:layout_height="wrap_content" 
/>
<Button
  android:id="@+id/btn_timepicker"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:text="Change the time"
/>
</LinearLayout>


注:相关教程知识阅读请移步到Android开发频道。