Skip to content

Commit 84900d3

Browse files
committed
Cilent:动态内容、评论内容 新增超链接(url,phone等)识别
1 parent 2ce6262 commit 84900d3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/res/layout/comment_item.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
android:id="@+id/tvmomentViewCommentItemContent"
44
style="@style/text_small_black"
55
android:layout_width="match_parent"
6+
android:autoLink="all"
67
android:background="@drawable/bg_item_to_alpha"
78
android:gravity="left|center_vertical"
89
android:paddingBottom="2dp"
910
android:paddingTop="2dp"
10-
android:text="This is a comment..." />
11+
android:text="This is a comment..." />

APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/res/layout/comment_view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
android:id="@+id/tvCommentContent"
5959
style="@style/text_small_black"
6060
android:layout_width="match_parent"
61+
android:autoLink="all"
6162
android:background="@drawable/bg_item_to_alpha"
6263
android:gravity="top|left"
6364
android:paddingBottom="4dp" />

APIJSON(Android)/APIJSON(ADT)/APIJSONApp/APIJSONApp/res/layout/moment_view.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
android:paddingRight="@dimen/moment_view_head_padding_right" >
1818

1919
<ImageView
20-
android:background="@color/alpha_3"
2120
android:id="@+id/ivMomentViewHead"
2221
android:layout_width="match_parent"
2322
android:layout_height="match_parent"
23+
android:background="@color/alpha_3"
2424
android:scaleType="centerCrop" />
2525
</RelativeLayout>
2626

@@ -55,6 +55,7 @@
5555
style="@style/text_small_black"
5656
android:layout_width="match_parent"
5757
android:layout_marginTop="5dp"
58+
android:autoLink="all"
5859
android:background="@drawable/bg_item_to_alpha"
5960
android:gravity="left|top"
6061
android:maxLines="8"

0 commit comments

Comments
 (0)