1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-24 09:13:04 +02:00

added about page

This commit is contained in:
OliE
2017-11-11 14:45:43 +01:00
parent 1f03c94d7b
commit 95b4686bb1
11 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/* Copyright (C) 2014 olie.xdev <olie.xdev@googlemail.com>
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>
*/
package com.health.openscale.gui.preferences;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import com.health.openscale.BuildConfig;
import com.health.openscale.R;
public class AboutPreferences extends PreferenceFragment {
private static final String KEY_APP_VERSION = "pref_app_version";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.about_preferences);
findPreference(KEY_APP_VERSION).setSummary("v" + BuildConfig.VERSION_NAME);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1013 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -149,4 +149,8 @@
<string name="label_estimate_lbw">Fettfreie Körpermassenschätzung</string>
<string name="label_estimate_lbw_formula">Fettfreie Körpermassenformel</string>
<string name="label_lbw">Fettfreie Körpermasse</string>
<string name="label_license">Lizenz</string>
<string name="label_maintainer">Hauptentwickler</string>
<string name="label_website">Webseite</string>
<string name="title_about">Info</string>
</resources>

View File

@@ -9,6 +9,7 @@
<string name="title_users">Users</string>
<string name="title_data">Data</string>
<string name="title_measurements">Measurements</string>
<string name="title_about">About</string>
<string name="action_settings">Settings</string>
<string name="action_bluetooth_status">Bluetooth Status</string>
@@ -130,6 +131,10 @@
<string name="label_category_measurement_database">Measurement database</string>
<string name="label_category_misc">Miscellaneous</string>
<string name="label_maintainer">Maintainer</string>
<string name="label_website">Website</string>
<string name="label_license">License</string>
<string name="label_estimate_water_formula">Body water formula</string>
<string name="label_estimate_lbw_formula">Body lean body weight formula</string>
<string name="label_estimate_fat_formula">Body fat formula</string>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:key="pref_app_version"
android:persistent="false"
android:selectable="false"
android:title="openScale" />
<Preference
android:persistent="false"
android:selectable="false"
android:title="@string/label_maintainer"
android:summary="olie.xdev &lt;olie.xdev@googlemail.com&gt;"/>
<Preference
android:persistent="false"
android:selectable="false"
android:title="@string/label_website"
android:summary="https://github.com/oliexdev/openScale"/>
<Preference
android:persistent="false"
android:selectable="false"
android:title="@string/label_license"
android:summary="GPLv3"/>
</PreferenceScreen>

View File

@@ -24,4 +24,8 @@
android:fragment="com.health.openscale.gui.preferences.BackupPreferences"
android:title="@string/label_backup"
android:icon="@drawable/ic_preferences_backup"/>
<header
android:fragment="com.health.openscale.gui.preferences.AboutPreferences"
android:title="@string/title_about"
android:icon="@drawable/ic_preferences_about"/>
</preference-headers>