Click-Ereignisse in RelativeLayout akzeptieren

Ich habe eine RelativeLayout mit ein paar TextView als Kinder

<RelativeLayout
    android:id="@+id/shift_parent_name"
    android:layout_width="fill_parent"
    android:layout_weight="0.25"
    >
    <TextView
        android:id="@+id/shift_parent_nametitle"
        android:text="@string/shift_parent_nametitle"
        style="@style/header_text"
        />
    <TextView
        android:id="@+id/shift_parent_namefield"
        android:layout_alignParentRight="true"
        android:layout_below="@id/shift_parent_nametitle"
        style="@style/wrap"
        />

Wie gehe ich mit der RelativeLayout als Taste zu reagieren, um eine click-Ereignis wenn ein Teil des Bereichs gedrückt wird?

InformationsquelleAutor der Frage skooter | 2010-06-01

Schreibe einen Kommentar