0

テキスト ビューのリストを生成する XML ページがあります。私はそれらを個別に持たなければなりません、そうでなければうまくいきません。どうぞ:

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/name_of_var_code"
        android:typeface="monospace" 
        android:textSize="16sp"
        android:textIsSelectable="true"
    />

    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/equals"
        android:typeface="monospace" 
        android:textSize="16sp"
        android:textIsSelectable="true"
    />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/val_of_var_code"
        android:typeface="monospace" 
        android:textSize="16sp"
        android:textIsSelectable="true"
    />

個別ではなく、グループ全体として選択可能にする方法はありますか? ありがとう、ロス。

4

1 に答える 1

0

それらを の中に入れてLinearLayoutクリック方法を設定すると、ユーザーがいずれかをクリックすると、実際にレイアウトをクリックし、グループ全体であるという印象を与えます。

于 2013-11-27T12:16:27.400 に答える