Cherish:Add about team

This commit is contained in:
Hưng Phan
2020-04-28 21:58:55 +07:00
committed by Hung Phan
parent 53cc02ec27
commit e6cb3f7806
14 changed files with 439 additions and 0 deletions

15
res/drawable/ic_about.xml Normal file
View File

@@ -0,0 +1,15 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:name="path"
android:pathData="M 16 11 C 17.66 11 18.99 9.66 18.99 8 C 18.99 6.34 17.66 5 16 5 C 14.34 5 13 6.34 13 8 C 13 9.66 14.34 11 16 11 Z M 8 11 C 9.66 11 10.99 9.66 10.99 8 C 10.99 6.34 9.66 5 8 5 C 6.34 5 5 6.34 5 8 C 5 9.66 6.34 11 8 11 Z M 8 13 C 5.67 13 1 14.17 1 16.5 L 1 19 L 15 19 L 15 16.5 C 15 14.17 10.33 13 8 13 Z M 16 13 C 15.71 13 15.38 13.02 15.03 13.05 C 16.19 13.89 17 15.02 17 16.5 L 17 19 L 23 19 L 23 16.5 C 23 14.17 18.33 13 16 13 Z"
android:fillColor="#000000"
android:strokeWidth="1"/>
</vector>

12
res/drawable/ic_devs.xml Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#000000"
android:pathData="M20 18c1.1 0 1.99-0.9 1.99-2L22 5c0-1.1-0.9-2-2-2H4c-1.1 0-2 0.9-2 2v11c0 1.1 0.9 2 2 2H0c0 1.1 0.9 2 2 2h20c1.1 0 2-0.9 2-2h-4zM4 5h16v11H4V5zm8 14c-0.55 0-1-0.45-1-1s0.45-1 1-1 1 0.45 1 1-0.45 1-1 1z" />
</vector>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#000000"
android:pathData="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z" />
</vector>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#000000"
android:pathData="M3 6h18V4H3c-1.1 0-2 0.9-2 2v12c0 1.1 0.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-0.61 0.55 -1 1.33-1 2.22 0 0.89 0.39 1.67 1 2.22V20h4v-1.78c0.61-0.55 1-1.34 1-2.22s-0.39-1.67-1-2.22V12zm-2 5.5c-0.83 0-1.5-0.67-1.5-1.5s0.67-1.5 1.5-1.5 1.5 0.67 1.5 1.5-0.67 1.5-1.5 1.5zM22 8h-6c-0.5 0-1 0.5-1 1v10c0 0.5 0.5 1 1 1h6c0.5 0 1-0.5 1-1V9c0-0.5-0.5-1-1-1zm-1 10h-4v-8h4v8z" />
</vector>

View File

@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</vector>

View File

@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M9.78,18.65L10.06,14.42L17.74,7.5C18.08,7.19 17.67,7.04 17.22,7.31L7.74,13.3L3.64,12C2.76,11.75 2.75,11.14 3.84,10.7L19.81,4.54C20.54,4.21 21.24,4.72 20.96,5.84L18.24,18.65C18.05,19.56 17.5,19.78 16.74,19.36L12.6,16.3L10.61,18.23C10.38,18.46 10.19,18.65 9.78,18.65Z" />
</vector>

View File

@@ -0,0 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path android:fillColor="?android:attr/colorControlNormal" android:pathData="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />
</vector>

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS
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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="about_cherish">Thông tin</string>
<string name="about_info">Về chúng tôi</string>
<string name="about_info_summary">CherishOS dựa trên Pixel Experience, với một số tính năng bổ sung. Chúng tôi mang đến một ROM có hiệu năng vượt trội, cân bằng các tính năng và cải thiện thời lượng pin.</string>
<string name="dev_info">Về CherishOS</string>
<string name="devs_header">Nhìn lại đội ngũ chúng tôi</string>
<string name="founder">Hung Phan</string>
<string name="founder_description">Người sáng lập</string>
<string name="lead">Hung Phan</string>
<string name="lead_description">Nhà phát triển chính</string>
<string name="social_header">#Lets Go!</string>
<string name="cherish_web">Trang web</string>
<string name="cherish_web_description">Trang web CherishOS cho thông tin và nhiều hơn nữa.</string>
<string name="cherish_web_link">http://cherish.github.io</string>
<string name="cherish_telegram">Telegram</string>
<string name="cherish_telegram_description">Kênh CherishOS.</string>
<string name="cherish_telegram_link">https://t.me/CherishOS</string>
<string name="cherish_github">Github</string>
<string name="cherish_github_description">Chúng tôi có mã nguồn mở!</string>
<string name="cherish_github_link">https://github.com/CherishOS/</string>
<string name="donate">Hiển thị Hỗ trợ của bạn</string>
<string name="donate_description">Đóng góp là không cần thiết, nhưng mỗi xu từ bạn sẽ giúp chúng tôi thanh toán hóa đơn máy chủ.</string>
<string name="donation_link">https://paypal.me/hungphan2001</string>
<!--Device maintainers -->
<string name="official_devices">Thiết bị chính thức</string>
<string name="maintainers_header">Người bảo trì</string>
<string name="maintainers_summary">thiết bị chính thức và người bảo trì</string>
</resources>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS
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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="about_cherish">About</string>
<string name="about_info">About Us</string>
<string name="about_info_summary">CherishOS based on Pixel Experience, with some added extras. We bring a ROM that exceptional performance, a balance of features, and improve battery life.</string>
<string name="dev_info">About CherishOS</string>
<string name="devs_header">Meet Our Team</string>
<string name="founder">Hung Phan</string>
<string name="founder_description">Founder</string>
<string name="lead">Hung Phan</string>
<string name="lead_description">Lead Developer</string>
<string name="social_header">#Lets Go!</string>
<string name="cherish_web">Website</string>
<string name="cherish_web_description">CherishOS website for Infos and more.</string>
<string name="cherish_web_link">http://cherish.github.io</string>
<string name="cherish_telegram">Telegram</string>
<string name="cherish_telegram_description">CherishOS Channel.</string>
<string name="cherish_telegram_link">https://t.me/CherishOS</string>
<string name="cherish_github">Github</string>
<string name="cherish_github_description">We are open source!</string>
<string name="cherish_github_link">https://github.com/CherishOS/</string>
<string name="donate">Show your support</string>
<string name="donate_description">Donation is not necessary, but each and every penny from you will help us to pay server bills.</string>
<string name="donation_link">https://paypal.me</string>
<!--Device maintainers -->
<string name="official_devices">Official Devices</string>
<string name="maintainers_header">Our Maintainers</string>
<string name="maintainers_summary">official devices and maintainers</string>
</resources>

114
res/xml/cherish_about.xml Normal file
View File

@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 CherishOS
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 orimplied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/about_cherish">
<PreferenceCategory
android:key="about"
android:title="@string/about_info" >
<Preference
android:summary="@string/about_info_summary" >
<intent
android:action="android.intent.action.VIEW"
android:data="@string/cherish_web_link" />
</Preference>
</PreferenceCategory>
<PreferenceCategory
android:key="social"
android:title="@string/social_header" >
<Preference
android:title="@string/cherish_web"
android:summary="@string/cherish_web_description"
android:icon="@drawable/ic_social_web" >
<intent
android:action="android.intent.action.VIEW"
android:data="@string/cherish_web_link" />
</Preference>
<Preference
android:title="@string/cherish_telegram"
android:summary="@string/cherish_telegram_description"
android:icon="@drawable/ic_social_telegram" >
<intent
android:action="android.intent.action.VIEW"
android:data="@string/cherish_telegram_link" />
</Preference>
<Preference
android:title="@string/cherish_github"
android:summary="@string/cherish_github_description"
android:icon="@drawable/ic_social_github" >
<intent
android:action="android.intent.action.VIEW"
android:data="@string/cherish_github_link" />
</Preference>
<Preference
android:title="@string/donate"
android:summary="@string/donate_description"
android:icon="@drawable/ic_donate" >
<intent
android:action="android.intent.action.VIEW"
android:data="@string/donation_link" />
</Preference>
</PreferenceCategory>
<PreferenceCategory
android:key="cherish_dev"
android:title="@string/devs_header" >
<Preference
android:title="@string/founder"
android:summary="@string/founder_description"
android:icon="@drawable/ic_devs" >
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/hungphan2001" />
</Preference>
<Preference
android:title="@string/lead"
android:summary="@string/lead_description"
android:icon="@drawable/ic_devs" >
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/hungphan2001" />
</Preference>
</PreferenceCategory>
<PreferenceCategory
android:key="cherish_maintainers"
android:title="@string/official_devices" >
<Preference
android:key="maintainers"
android:fragment="com.cherish.settings.fragments.Maintainers"
android:icon="@drawable/ic_maintainers"
android:title="@string/maintainers_header"
android:summary="@string/maintainers_summary" >
</Preference>
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 AIMROM
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 orimplied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/maintainers_header">
</PreferenceScreen>

View File

@@ -87,6 +87,14 @@
android:fragment="com.cherish.settings.fragments.MiscSettings"
android:icon="@drawable/ic_settings_miscs"/>
<!-- About Team -->
<Preference
android:key="about_category"
android:title="@string/about_cherish"
android:fragment="com.cherish.settings.fragments.About"
android:icon="@drawable/ic_about" />
<!-- Device Part -->
<Preference
android:key="device_part"

View File

@@ -0,0 +1,67 @@
/*
* Copyright (C) 2020 CherishOS
*
* 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 com.cherish.settings.fragments;
import android.content.Context;
import android.content.ContentResolver;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.UserHandle;
import androidx.preference.ListPreference;
import androidx.preference.SwitchPreference;
import androidx.preference.Preference;
import androidx.preference.PreferenceCategory;
import androidx.preference.PreferenceScreen;
import androidx.preference.Preference.OnPreferenceChangeListener;
import android.provider.Settings;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.internal.logging.nano.MetricsProto;
public class About extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.cherish_about);
PreferenceScreen prefScreen = getPreferenceScreen();
ContentResolver resolver = getActivity().getContentResolver();
}
@Override
public int getMetricsCategory() {
return MetricsProto.MetricsEvent.CHERISH_SETTINGS;
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void onPause() {
super.onPause();
}
@Override
public boolean onPreferenceChange(Preference preference, Object objValue) {
return false;
}
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright (C) 2020 CherishOS
*
* 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 com.cherish.settings.fragments;
import android.content.Context;
import android.content.ContentResolver;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.UserHandle;
import androidx.preference.ListPreference;
import androidx.preference.SwitchPreference;
import androidx.preference.Preference;
import androidx.preference.PreferenceCategory;
import androidx.preference.PreferenceScreen;
import androidx.preference.Preference.OnPreferenceChangeListener;
import android.provider.Settings;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.internal.logging.nano.MetricsProto;
public class Maintainers extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.cherish_maintainers);
PreferenceScreen prefScreen = getPreferenceScreen();
ContentResolver resolver = getActivity().getContentResolver();
}
@Override
public int getMetricsCategory() {
return MetricsProto.MetricsEvent.CHERISH_SETTINGS;
}
@Override
public void onResume() {
super.onResume();
}
@Override
public void onPause() {
super.onPause();
}
@Override
public boolean onPreferenceChange(Preference preference, Object objValue) {
return false;
}
}