Skip to content
Snippets Groups Projects
Unverified Commit b78160e4 authored by Elias Zemanek's avatar Elias Zemanek Committed by GitHub
Browse files

Added autoLink to layouts (closes issue #633) (#564)


* Added autoLink to fragment_information_legal

* Added autoLink to fragment_information_contact.xml

* Added autoLink to include_information_details.xml

* Changed textColor for autoLinks

Co-authored-by: default avatarJakob Möller <jakob.moeller@sap.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 3c5c1350
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,8 @@ ...@@ -110,6 +110,8 @@
android:layout_marginTop="@dimen/spacing_normal" android:layout_marginTop="@dimen/spacing_normal"
android:text="@string/information_contact_body_other" android:text="@string/information_contact_body_other"
android:focusable="true" android:focusable="true"
android:autoLink="phone"
android:textColorLink="@color/colorTextTint"
app:layout_constraintEnd_toEndOf="@+id/guideline_end" app:layout_constraintEnd_toEndOf="@+id/guideline_end"
app:layout_constraintStart_toStartOf="@+id/guideline_start" app:layout_constraintStart_toStartOf="@+id/guideline_start"
app:layout_constraintTop_toBottomOf="@+id/information_contact_body_open" /> app:layout_constraintTop_toBottomOf="@+id/information_contact_body_open" />
......
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
android:layout_marginTop="@dimen/spacing_tiny" android:layout_marginTop="@dimen/spacing_tiny"
android:text="@string/information_legal_subtitle_contact" android:text="@string/information_legal_subtitle_contact"
android:focusable="true" android:focusable="true"
android:autoLink="all"
android:textColorLink="@color/colorTextTint"
app:layout_constraintEnd_toStartOf="@+id/guideline_end" app:layout_constraintEnd_toStartOf="@+id/guideline_end"
app:layout_constraintStart_toEndOf="@+id/guideline_start" app:layout_constraintStart_toEndOf="@+id/guideline_start"
app:layout_constraintTop_toBottomOf="@+id/information_legal_headline_contact" /> app:layout_constraintTop_toBottomOf="@+id/information_legal_headline_contact" />
......
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
android:focusable="true" android:focusable="true"
android:text="@{body}" android:text="@{body}"
android:visibility="@{FormatterHelper.formatVisibilityText(body)}" android:visibility="@{FormatterHelper.formatVisibilityText(body)}"
android:autoLink="all"
android:textColorLink="@color/colorTextTint"
app:layout_constraintEnd_toEndOf="@id/guideline_end" app:layout_constraintEnd_toEndOf="@id/guideline_end"
app:layout_constraintStart_toStartOf="@id/guideline_start" app:layout_constraintStart_toStartOf="@id/guideline_start"
app:layout_constraintTop_toBottomOf="@+id/information_details_header_headline" app:layout_constraintTop_toBottomOf="@+id/information_details_header_headline"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment