#1063 - Add "About QKSMS" section in settings

This commit is contained in:
Moez Bhatti
2018-04-20 04:19:43 -04:00
parent 7b0524dbc2
commit 510a9d23b5
13 changed files with 293 additions and 10 deletions
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2017 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
~
~ QKSMS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ QKSMS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
app:layout_constraintTop_toTopOf="parent"
tools:background="@color/white">
<common.widget.QkTextView
android:id="@+id/toolbarTitle"
style="@style/ToolbarText"
tools:text="@string/about_title" />
</android.support.v7.widget.Toolbar>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar">
<LinearLayout
android:id="@+id/preferences"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingTop="8dp">
<common.widget.PreferenceView
android:id="@+id/version"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/about_version_title"
tools:summary="3.0.8" />
<common.widget.PreferenceView
android:id="@+id/developer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_developer"
app:title="@string/about_developer_title" />
<common.widget.PreferenceView
android:id="@+id/source"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_source"
app:title="@string/about_source_title" />
<common.widget.PreferenceView
android:id="@+id/changelog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_changelog"
app:title="@string/about_changelog_title" />
<common.widget.PreferenceView
android:id="@+id/contact"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_contact"
app:title="@string/about_contact_title" />
<common.widget.PreferenceView
android:id="@+id/license"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_license"
app:title="@string/about_license_title" />
<common.widget.PreferenceView
android:id="@+id/copyright"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:summary="@string/about_copyright"
app:title="@string/about_copyright_title" />
</LinearLayout>
</ScrollView>
<View
android:layout_width="match_parent"
android:layout_height="8dp"
android:background="@drawable/ab_shadow"
app:layout_constraintTop_toBottomOf="@id/toolbar" />
<common.widget.Separator
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
app:layout_constraintBottom_toBottomOf="parent" />
</android.support.constraint.ConstraintLayout>
@@ -194,16 +194,13 @@
app:summary="@string/settings_sync_summary"
app:title="@string/settings_sync_title" />
<common.widget.QkTextView
android:id="@+id/version"
android:layout_width="wrap_content"
<common.widget.PreferenceView
android:id="@+id/about"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="8dp"
android:layout_marginTop="24dp"
app:textColor="tertiary"
app:textSize="secondary"
tools:text="Version 3.0.0" />
app:icon="@drawable/ic_info_outline_black_24dp"
app:title="@string/settings_about_title"
tools:summary="Version 3.0.7" />
</LinearLayout>