22<!--
33 ~ Nextcloud Talk - Android Client
44 ~
5+ ~ SPDX-FileCopyrightText: 2025 Andy Scherzinger <info@andy-scherzinger.de>
56 ~ SPDX-FileCopyrightText: 2022 Marcel Hibbe <dev@mhibbe.de>
67 ~ SPDX-License-Identifier: GPL-3.0-or-later
78-->
89<RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
10+ xmlns : app =" http://schemas.android.com/apk/res-auto"
911 xmlns : tools =" http://schemas.android.com/tools"
1012 android : id =" @+id/referenceWrapper"
11- android : layout_width =" match_parent "
13+ android : layout_width =" wrap_content "
1214 android : layout_height =" wrap_content"
13- android : layout_marginTop =" 5dp" >
15+ android : layout_marginTop =" @dimen/standard_half_margin"
16+ android : layout_marginBottom =" @dimen/standard_quarter_margin" >
1417
15- <View
16- android : id =" @+id/referenceIndentedSideBar"
17- android : layout_width =" 2dp"
18- android : layout_height =" wrap_content"
19- android : layout_marginEnd =" 8dp"
20- android : background =" @color/low_emphasis_text"
21- tools : layout_height =" 100dp" />
22-
23- <androidx .emoji2.widget.EmojiTextView
24- android : id =" @+id/referenceName"
25- android : layout_width =" wrap_content"
18+ <com .google.android.material.imageview.ShapeableImageView
19+ android : id =" @+id/referenceThumbImage"
20+ android : layout_width =" @dimen/link_preview_width"
2621 android : layout_height =" wrap_content"
27- android : layout_marginStart =" 10dp"
28- android : ellipsize =" end"
29- android : lineSpacingMultiplier =" 1.2"
30- android : maxLines =" 2"
31- android : textAlignment =" viewStart"
32- android : textIsSelectable =" false"
33- android : textStyle =" bold"
22+ android : adjustViewBounds =" true"
23+ android : background =" @color/reply_background"
3424 android : visibility =" gone"
35- tools : text =" Name of Website"
25+ android : maxHeight =" @dimen/link_preview_height"
26+ app : shapeAppearanceOverlay =" @style/LinkPreviewStyle"
27+ tools : ignore =" ContentDescription"
28+ tools : src =" @drawable/ic_add_attachment"
3629 tools : visibility =" visible" />
3730
38- <androidx .emoji2.widget.EmojiTextView
39- android : id =" @+id/referenceDescription "
40- android : layout_width =" wrap_content "
31+ <LinearLayout
32+ android : id =" @+id/referenceMetadataContainer "
33+ android : layout_width =" @dimen/link_preview_width "
4134 android : layout_height =" wrap_content"
42- android : layout_below =" @id/referenceName"
43- android : layout_marginStart =" 10dp"
44- android : ellipsize =" end"
45- android : lineSpacingMultiplier =" 1.2"
46- android : maxLines =" 2"
47- android : textAlignment =" viewStart"
48- android : textIsSelectable =" false"
49- android : visibility =" gone"
50- tools : text =" Description of Website"
51- tools : visibility =" visible" />
35+ android : layout_below =" @id/referenceThumbImage"
36+ android : background =" @drawable/link_text_background"
37+ android : orientation =" vertical"
38+ android : paddingStart =" @dimen/standard_half_margin"
39+ android : paddingTop =" @dimen/standard_quarter_margin"
40+ android : paddingEnd =" @dimen/standard_half_margin"
41+ android : paddingBottom =" @dimen/standard_half_margin" >
5242
53- <androidx .emoji2.widget.EmojiTextView
54- android : id =" @+id/referenceLink"
55- android : layout_width =" wrap_content"
56- android : layout_height =" wrap_content"
57- android : layout_below =" @id/referenceDescription"
58- android : layout_marginStart =" 10dp"
59- android : ellipsize =" end"
60- android : lineSpacingMultiplier =" 1.2"
61- android : lines =" 1"
62- android : singleLine =" true"
63- android : textAlignment =" viewStart"
64- android : textColor =" @color/medium_emphasis_text"
65- android : textIsSelectable =" false"
66- android : visibility =" gone"
67- tools : text =" http://nextcloud.com"
68- tools : visibility =" visible" />
43+ <androidx .emoji2.widget.EmojiTextView
44+ android : id =" @+id/referenceName"
45+ android : layout_width =" wrap_content"
46+ android : layout_height =" wrap_content"
47+ android : ellipsize =" end"
48+ android : lineSpacingMultiplier =" 1.2"
49+ android : maxLines =" 2"
50+ android : textAlignment =" viewStart"
51+ android : textIsSelectable =" false"
52+ android : textStyle =" bold"
53+ android : visibility =" gone"
54+ tools : text =" Name of Website"
55+ tools : visibility =" visible" />
6956
70- <ImageView
71- android : id =" @+id/referenceThumbImage"
72- android : layout_width =" match_parent"
73- android : layout_height =" 120dp"
74- android : layout_below =" @id/referenceLink"
75- android : layout_marginStart =" 10dp"
76- android : layout_marginTop =" 5dp"
77- android : scaleType =" fitEnd"
78- android : visibility =" gone"
79- tools : visibility =" visible"
80- tools : ignore =" ContentDescription" />
81- </RelativeLayout >
57+ <androidx .emoji2.widget.EmojiTextView
58+ android : id =" @+id/referenceDescription"
59+ android : layout_width =" wrap_content"
60+ android : layout_height =" wrap_content"
61+ android : ellipsize =" end"
62+ android : lineSpacingMultiplier =" 1.2"
63+ android : maxLines =" 2"
64+ android : textAlignment =" viewStart"
65+ android : textIsSelectable =" false"
66+ android : visibility =" gone"
67+ tools : text =" Description of Website"
68+ tools : visibility =" visible" />
69+
70+ <androidx .emoji2.widget.EmojiTextView
71+ android : id =" @+id/referenceLink"
72+ android : layout_width =" wrap_content"
73+ android : layout_height =" wrap_content"
74+ android : ellipsize =" end"
75+ android : lineSpacingMultiplier =" 1.2"
76+ android : lines =" 1"
77+ android : singleLine =" true"
78+ android : textAlignment =" viewStart"
79+ android : textColor =" @color/medium_emphasis_text"
80+ android : textIsSelectable =" false"
81+ android : visibility =" gone"
82+ tools : text =" http://nextcloud.com"
83+ tools : visibility =" visible" />
84+
85+ </LinearLayout >
86+
87+ </RelativeLayout >
0 commit comments