Made About text scrollable, fixed title

This commit is contained in:
Nite 2022-02-19 11:26:13 +01:00
parent baa0c92c7a
commit b7d1e4acf6
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
2 changed files with 36 additions and 18 deletions

View File

@ -56,7 +56,7 @@ class AboutFragment : Fragment() {
versionName
)
setTitle(this@AboutFragment, title)
setTitle(this@AboutFragment, getString(R.string.menu_about))
titleText?.text = title
webPageButton?.setOnClickListener {

View File

@ -3,25 +3,43 @@
a:layout_width="fill_parent"
a:layout_height="fill_parent">
<TextView
a:id="@+id/help_title"
a:layout_width="match_parent"
<ScrollView
a:id="@+id/SCROLLER_ID"
a:layout_width="fill_parent"
a:layout_height="wrap_content"
a:gravity="center"
a:padding="18dp"
a:text="@string/common.appname"
a:textSize="25sp" />
a:layout_above="@+id/help_webpage"
a:layout_alignParentTop="true"
a:fillViewport="true"
a:layout_marginBottom="10dp"
a:scrollbars="vertical">
<RelativeLayout
a:layout_width="wrap_content"
a:layout_height="wrap_content">
<TextView
a:id="@+id/help_title"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:gravity="center"
a:padding="18dp"
a:text="@string/common.appname"
a:textSize="25sp" />
<TextView
a:id="@+id/help_text"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:layout_below="@id/help_title"
a:layout_marginTop="0dp"
a:padding="20dp"
a:text="@string/about.text"
a:textSize="16sp" />
</RelativeLayout>
</ScrollView>
<TextView
a:id="@+id/help_text"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:layout_below="@+id/help_title"
a:layout_marginTop="0dp"
a:padding="20dp"
a:textSize="16sp"
a:text="@string/about.text"
/>
<Button
a:id="@+id/help_webpage"