1

Eclipse を使用して、datepicker を使用する Android フォームを開発しています。私もアクションバーシャーロックを使っています。それが間違って表示するもの。もう 1 つの問題は、スピナーが Ñ のような特殊文字を表示せず、単語全体を隠していることです。

以下の画像と 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>
4

1 に答える 1

0

ピッカーをアクティビティ/フラグメント レイアウトに埋め込む代わりに、日付ピッカー ダイアログを使用してみてください。 http://developer.android.com/guide/topics/ui/controls/pickers.html

スピナーにデータを提供する方法。このデータの読み方が間違っているのでしょうか?

于 2012-08-21T18:44:23.453 に答える