Added a link to my website to About page

This commit is contained in:
ottoptj 2024-08-06 03:33:16 +03:00
commit b9b012b41d
3 changed files with 6 additions and 3 deletions

View file

@ -23,6 +23,7 @@ class AboutFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
stringUtils.setLink(requireActivity().findViewById(R.id.creditText), getString(R.string.my_website_link))
stringUtils.setLink(requireActivity().findViewById(R.id.codebergLink), getString(R.string.codeberg_link))
stringUtils.setLink(requireActivity().findViewById(R.id.githubLink), getString(R.string.github_link))
stringUtils.setLink(requireActivity().findViewById(R.id.stripeLink), getString(R.string.stripe_link))

View file

@ -29,11 +29,11 @@
app:layout_constraintTop_toBottomOf="@+id/imageView" />
<TextView
android:id="@+id/textView3"
android:id="@+id/creditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="By Otto Petäjä"
android:textSize="16sp"
android:textSize="17sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/textView2"
app:layout_constraintTop_toBottomOf="@+id/textView2" />
@ -48,7 +48,7 @@
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView3" />
app:layout_constraintTop_toBottomOf="@+id/creditText" />
<View
android:id="@+id/divider"

View file

@ -65,6 +65,8 @@
</string>
<string name="attachment_summary_off">Only download attachments when manually requested</string>
<string name="my_website_link"><![CDATA[by <a href="https://ottop.eu">Otto Petäjä</a>]]></string>
<string name="codeberg_link"><![CDATA[<a href="https://codeberg.org/ottoptj/yamlauncher">Codeberg</a>]]></string>
<string name="github_link"><![CDATA[<a href="https://github.com">GitHub</a>]]></string>