我正在使用 Eclipse 开发一个使用 datepicker 的 Android 表单。我也使用actionbarsherlock。它显示错误的东西。另一个问题是微调器不显示像Ñ这样的特殊字符并隐藏整个单词。
下面的图像和 XML。
https://dl.dropbox.com/u/6955865/picker.png
这是我的 xml 布局代码。
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:context=".BuscarTarea" >
<Spinner
android:id="@+id/spvina"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Spinner
android:id="@+id/sptarea"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Spinner
android:id="@+id/spproducto"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<DatePicker
android:id="@+id/datePicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/buscar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="onClick"
android:text="Buscar" />
</LinearLayout>