update about page

This commit is contained in:
Tungstend 2023-07-28 06:02:13 +08:00
parent b54a8ec05e
commit 24839ee46a
4 changed files with 41 additions and 1 deletions

View File

@ -16,6 +16,7 @@ public class AboutPage extends FCLCommonPage implements View.OnClickListener {
private FCLLinearLayout launcher;
private FCLLinearLayout developer;
private FCLLinearLayout sponsor;
private FCLLinearLayout source;
public AboutPage(Context context, int id, FCLUILayout parent, int resId) {
super(context, id, parent, resId);
@ -27,9 +28,11 @@ public class AboutPage extends FCLCommonPage implements View.OnClickListener {
launcher = findViewById(R.id.launcher);
developer = findViewById(R.id.developer);
sponsor = findViewById(R.id.sponsor);
source = findViewById(R.id.source);
launcher.setOnClickListener(this);
developer.setOnClickListener(this);
sponsor.setOnClickListener(this);
source.setOnClickListener(this);
}
@Override
@ -42,7 +45,7 @@ public class AboutPage extends FCLCommonPage implements View.OnClickListener {
Uri uri = null;
if (v == launcher) {
uri = Uri.parse("https://github.com/FCL-Team/FoldCraftLauncher");
uri = Uri.parse("https://fcl-team.github.io/");
}
if (v == developer) {
uri = Uri.parse("https://github.com/FCL-Team");
@ -50,6 +53,9 @@ public class AboutPage extends FCLCommonPage implements View.OnClickListener {
if (v == sponsor) {
uri = Uri.parse("https://afdian.net/@tungs");
}
if (v == source) {
uri = Uri.parse("https://github.com/FCL-Team/FoldCraftLauncher");
}
if (uri != null) {
Intent intent = new Intent(Intent.ACTION_VIEW, uri);

View File

@ -112,6 +112,38 @@
</com.tungsten.fcllibrary.component.view.FCLLinearLayout>
<com.tungsten.fcllibrary.component.view.FCLLinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="15dp"
android:background="@drawable/bg_container_white_clickable"
android:orientation="horizontal"
android:id="@+id/source"
android:layout_marginTop="10dp"
app:auto_linear_background_tint="true">
<com.tungsten.fcllibrary.component.view.FCLTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about_source"
android:layout_gravity="center"
android:singleLine="true"
app:auto_text_tint="true"/>
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"/>
<com.tungsten.fcllibrary.component.view.FCLImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_baseline_jump_24"
android:layout_gravity="center"
app:auto_src_tint="true"/>
</com.tungsten.fcllibrary.component.view.FCLLinearLayout>
<com.tungsten.fcllibrary.component.view.FCLTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@ -18,6 +18,7 @@
<string name="about">关于</string>
<string name="about_sponsor">赞助</string>
<string name="about_source">开源</string>
<string name="about_desc">Fold Craft Launcher 是一个 Android Minecraft 启动器,让用户能够在 Android 设备上启动 Minecraft: Java Edition。\n\nFold Craft Launcher 由 FCL-Team 开发。\n\nFold Craft Launcher 的主要功能是基于 HMCLCore 修改而成的。\n\n该应用借鉴和引用了一些 PojavLauncher 和 Boat 的源码,所以如果你要传播分发该软件,请遵循 GPL-v3 协议。</string>
<string name="account_add_server">添加认证服务器</string>

View File

@ -27,6 +27,7 @@
<string name="about_launcher" translatable="false">Fold Craft Launcher</string>
<string name="about_developer" translatable="false">FCL-Team</string>
<string name="about_sponsor">Sponsor</string>
<string name="about_source">Open Source</string>
<string name="about_desc">Fold Craft Launcher is an Android Minecraft Launcher, allows user to launch Minecraft: Java Edition on Android device.\n\nFold Craft Launcher is developed by FCL-Team.\n\nFold Craft Launcher\'s most features are modified based on HMCLCore.\n\nThe app borrows and quotes some codes of PojavLauncher and Boat, so if you are going to distribute this app, please follow GPL-v3 License.</string>
<string name="account_add_server">Add Authentication Server</string>