0

私はこの厄介な問題を抱えています。

TextView を含むリスト アダプターがあります。

私の TextView では、テキストは XML を使用して電話へのリンクとして定義されています。リストの最初の項目ではうまく機能しますが、他の項目では機能しません。

何か案は?

これが私の XML スニペットです。

            <TextView
                android:id="@+id/phone"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:textColor="@color/phone"
                android:layout_gravity="right"
                android:gravity="right"
                android:clickable="false"
                android:autoLink="phone"
                android:textSize="@dimen/feed_item_phone" />

getView コード スニペット:

        TextView phone = (TextView) convertView.findViewById(R.id.phone);
        phone.setText(item.getPhone());

ありがとう!

4

0 に答える 0