forked from amazingfate/loongoffice
As cloph suggested in [1], set sample texts for the version and vendor information in the About dialog, using the `tools:text` attribute as described at [2]. These are displayed when viewing the layout in Android Studio's layout preview. With these placeholder texts, this gives a better impression at design time what the actual result will look like at runtime. The actual texts for the view are set at runtime, s. `AboutDialogFragment#onCreateDialog`. [1] https://gerrit.libreoffice.org/c/core/+/160047/comments/52584e2e_50869bef [2] https://developer.android.com/studio/write/tool-attributes#design-time_view_attributes Change-Id: I92b1c3d9f947fd1aa68a3ef4f0eee9e5c742e0c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160826 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
47 lines
1.5 KiB
XML
47 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dip">
|
|
|
|
<TextView
|
|
android:id="@+id/about_version"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textIsSelectable="true"
|
|
android:textSize="18sp"
|
|
tools:text="Version: x.x.x.x\nBuild ID: 000000000000" />
|
|
|
|
<TextView
|
|
android:id="@+id/about_description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/app_description"
|
|
android:textSize="18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/about_credits"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:autoLink="web"
|
|
android:paddingBottom="20dip"
|
|
android:paddingTop="20dip"
|
|
android:text="@string/app_credits"
|
|
android:textSize="18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/about_vendor"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textIsSelectable="true"
|
|
android:textSize="18sp"
|
|
tools:text="@string/app_vendor" />
|
|
</LinearLayout>
|
|
</ScrollView>
|