diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/latin/settings/AboutFragment.java b/app/src/main/java/org/dslul/openboard/inputmethod/latin/settings/AboutFragment.java new file mode 100644 index 000000000..4fc89bec9 --- /dev/null +++ b/app/src/main/java/org/dslul/openboard/inputmethod/latin/settings/AboutFragment.java @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.dslul.openboard.inputmethod.latin.settings; + +import android.os.Bundle; + +import org.dslul.openboard.inputmethod.latin.R; + + +/** + * "About" sub screen. + */ +public final class AboutFragment extends SubScreenFragment { + @Override + public void onCreate(final Bundle icicle) { + super.onCreate(icicle); + addPreferencesFromResource(R.xml.prefs_screen_about); + } +} \ No newline at end of file diff --git a/app/src/main/java/org/dslul/openboard/inputmethod/latin/utils/FragmentUtils.java b/app/src/main/java/org/dslul/openboard/inputmethod/latin/utils/FragmentUtils.java index 74466e2b0..abdafebb6 100644 --- a/app/src/main/java/org/dslul/openboard/inputmethod/latin/utils/FragmentUtils.java +++ b/app/src/main/java/org/dslul/openboard/inputmethod/latin/utils/FragmentUtils.java @@ -24,6 +24,7 @@ import org.dslul.openboard.inputmethod.latin.settings.GestureSettingsFragment; import org.dslul.openboard.inputmethod.latin.settings.PreferencesSettingsFragment; import org.dslul.openboard.inputmethod.latin.settings.SettingsFragment; +import org.dslul.openboard.inputmethod.latin.settings.AboutFragment; import org.dslul.openboard.inputmethod.latin.spellcheck.SpellCheckerSettingsFragment; import org.dslul.openboard.inputmethod.latin.userdictionary.UserDictionaryAddWordFragment; import org.dslul.openboard.inputmethod.latin.userdictionary.UserDictionaryList; @@ -43,6 +44,7 @@ public class FragmentUtils { sLatinImeFragments.add(AdvancedSettingsFragment.class.getName()); sLatinImeFragments.add(DebugSettingsFragment.class.getName()); sLatinImeFragments.add(SettingsFragment.class.getName()); + sLatinImeFragments.add(AboutFragment.class.getName()); sLatinImeFragments.add(SpellCheckerSettingsFragment.class.getName()); sLatinImeFragments.add(UserDictionaryAddWordFragment.class.getName()); sLatinImeFragments.add(UserDictionaryList.class.getName()); diff --git a/app/src/main/res/drawable-hdpi/ic_settings_about_white.png b/app/src/main/res/drawable-hdpi/ic_settings_about_white.png new file mode 100644 index 000000000..90fb37f7e Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_settings_about_white.png differ diff --git a/app/src/main/res/drawable-v21/ic_settings_about.xml b/app/src/main/res/drawable-v21/ic_settings_about.xml new file mode 100644 index 000000000..c79a4e9ac --- /dev/null +++ b/app/src/main/res/drawable-v21/ic_settings_about.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-xhdpi/ic_settings_about_white.png b/app/src/main/res/drawable-xhdpi/ic_settings_about_white.png new file mode 100644 index 000000000..35fc324af Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_settings_about_white.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_settings_about_white.png b/app/src/main/res/drawable-xxhdpi/ic_settings_about_white.png new file mode 100644 index 000000000..281c88ee9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_settings_about_white.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_settings_about_white.png b/app/src/main/res/drawable-xxxhdpi/ic_settings_about_white.png new file mode 100644 index 000000000..206cd5c91 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/ic_settings_about_white.png differ diff --git a/app/src/main/res/drawable/ic_settings_about.xml b/app/src/main/res/drawable/ic_settings_about.xml new file mode 100644 index 000000000..fde03c6ed --- /dev/null +++ b/app/src/main/res/drawable/ic_settings_about.xml @@ -0,0 +1,3 @@ + + \ No newline at end of file diff --git a/app/src/main/res/values-bn/strings.xml b/app/src/main/res/values-bn/strings.xml index d3adb63ff..b1207d663 100644 --- a/app/src/main/res/values-bn/strings.xml +++ b/app/src/main/res/values-bn/strings.xml @@ -231,4 +231,9 @@ %s (অক্ষর) যতিচিহ্নের পরে স্বয়ংক্রিয় স্পেস নতুন শব্দ লেখার সময় যতিচিহ্নের পরে স্বয়ংক্রিয়ভাবে স্পেস বসবে + সম্পর্কে + সংস্করণ + গিটহাবে দেখুন + ওপেন-সোর্স লাইসেন্স + জিএনইউ জেনারেল পাবলিক লাইসেন্স v3.0 \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6ef73fc30..d81929237 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -581,4 +581,14 @@ disposition rather than other common dispositions for Latin languages. [CHAR LIM Deep black backgrounds Can reduce power usage depending on the device’s screen technology + + About + + Version + + View on GitHub + + Open-source license + + GNU General Public License v3.0 \ No newline at end of file diff --git a/app/src/main/res/xml/key_styles_settings.xml b/app/src/main/res/xml/key_styles_settings.xml index 2d6ec6f72..8e4079070 100644 --- a/app/src/main/res/xml/key_styles_settings.xml +++ b/app/src/main/res/xml/key_styles_settings.xml @@ -38,7 +38,7 @@ latin:styleName="settingsMoreKeysStyle" latin:keyLabelFlags="hasPopupHint" latin:backgroundType="functional" - latin:additionalMoreKeys="!text/keyspec_settings,!text/keyspec_clipboard_normal_key"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_emoji_normal_key,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_language_switch,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_emoji_normal_key,!text/keyspec_language_switch,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_start_onehanded_mode,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_emoji_normal_key,!text/keyspec_start_onehanded_mode,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_language_switch,!text/keyspec_start_onehanded_mode,!text/keyspec_settings"/> + latin:additionalMoreKeys="!text/keyspec_clipboard_normal_key,!text/keyspec_emoji_normal_key,!text/keyspec_language_switch,!text/keyspec_start_onehanded_mode,!text/keyspec_settings"/> diff --git a/app/src/main/res/xml/prefs.xml b/app/src/main/res/xml/prefs.xml index f5f9f0495..bb8b6f526 100644 --- a/app/src/main/res/xml/prefs.xml +++ b/app/src/main/res/xml/prefs.xml @@ -41,4 +41,9 @@ android:title="@string/settings_screen_advanced" android:key="screen_advanced" android:icon="@drawable/ic_settings_advanced"/> + diff --git a/app/src/main/res/xml/prefs_screen_about.xml b/app/src/main/res/xml/prefs_screen_about.xml new file mode 100644 index 000000000..687ab9811 --- /dev/null +++ b/app/src/main/res/xml/prefs_screen_about.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + \ No newline at end of file