我正在尝试构建一个带有文本视图和日期选择器的表单,例如:|日期:| |日期选择器在这里| 问题是我认为我的代码与开发人员指南“相同”,但它不起作用。它总是以这样的方式结束:|日期:datePickerHere|
继承人的代码:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:text="@string/data_label"/>
<DatePicker
android:id="@+id/data"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</ScrollView>