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