Date Picker小程序及六种布局方式.docVIP

  • 7
  • 0
  • 约1.13万字
  • 约 18页
  • 2016-09-18 发布于浙江
  • 举报
Date Picker小程序及六种布局方式

Date Picker实例 程序参考 :/resources/tutorials/views/hello-datepicker.html 一、程序介绍 程序运行如图: 点击按钮Change the date 后显示 二、代码实现分析 程序的目录结构: 新建一个Android 项目HelloDatePicker. 打开 res/layout/main.xml 文件插入下面的两个要遇到的组件 需要一个TextView用于显示当前日期 需要一个Button,点击后可以改变当前日期。 首先在main.xml中加入TextView和Button ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=/apk/res/android android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical TextView android:id=@+id/dateDisplay android:layout_width=wrap_content android:layout_height=wrap_content android

文档评论(0)

1亿VIP精品文档

相关文档