应用介绍页重构...
This commit is contained in:
parent
76c9ae469f
commit
8fb9ef7992
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Mon Mar 24 12:49:28 GMT 2025
|
#Mon Mar 24 16:06:29 GMT 2025
|
||||||
stageCount=6
|
stageCount=6
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.0
|
baseVersion=15.0
|
||||||
publishVersion=15.0.5
|
publishVersion=15.0.5
|
||||||
buildCount=7
|
buildCount=8
|
||||||
baseBetaVersion=15.0.6
|
baseBetaVersion=15.0.6
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
android:name="android.max_aspect"
|
android:name="android.max_aspect"
|
||||||
android:value="4.0"/>
|
android:value="4.0"/>
|
||||||
|
|
||||||
|
<activity android:name=".AboutActivity"/>
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
64
aes/src/main/java/cc/winboll/studio/aes/AboutActivity.java
Normal file
64
aes/src/main/java/cc/winboll/studio/aes/AboutActivity.java
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
package cc.winboll.studio.aes;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.LinearLayout;
|
||||||
|
import cc.winboll.studio.libaes.winboll.APPInfo;
|
||||||
|
import cc.winboll.studio.libaes.winboll.AboutView;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author ZhanGSKen@AliYun.Com
|
||||||
|
* @Date 2025/03/24 23:52:29
|
||||||
|
* @Describe AES应用介绍窗口
|
||||||
|
*/
|
||||||
|
public class AboutActivity extends Activity {
|
||||||
|
|
||||||
|
Context mContext;
|
||||||
|
|
||||||
|
public static final String TAG = "AboutActivity";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_about);
|
||||||
|
mContext = this;
|
||||||
|
|
||||||
|
AboutView aboutView = CreateAboutView();
|
||||||
|
// 在 Activity 的 onCreate 或其他生命周期方法中调用
|
||||||
|
LinearLayout layout = new LinearLayout(this);
|
||||||
|
layout.setOrientation(LinearLayout.VERTICAL);
|
||||||
|
// 创建布局参数(宽度和高度)
|
||||||
|
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(
|
||||||
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||||
|
ViewGroup.LayoutParams.MATCH_PARENT
|
||||||
|
);
|
||||||
|
|
||||||
|
// Button button = new Button(this);
|
||||||
|
// button.setText("动态添加的按钮");
|
||||||
|
// button.setLayoutParams(params);
|
||||||
|
// 将按钮添加到 Activity 的根布局中
|
||||||
|
//addContentView(button, params);
|
||||||
|
|
||||||
|
addContentView(aboutView, params);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public AboutView CreateAboutView() {
|
||||||
|
String szBranchName = "aes";
|
||||||
|
APPInfo appInfo = new APPInfo();
|
||||||
|
appInfo.setAppName("AES");
|
||||||
|
appInfo.setAppIcon(cc.winboll.studio.libapputils.R.drawable.ic_winboll);
|
||||||
|
appInfo.setAppDescription("AES Description");
|
||||||
|
appInfo.setAppGitName("APP");
|
||||||
|
appInfo.setAppGitOwner("Studio");
|
||||||
|
appInfo.setAppGitAPPBranch(szBranchName);
|
||||||
|
appInfo.setAppGitAPPSubProjectFolder(szBranchName);
|
||||||
|
appInfo.setAppHomePage("https://www.winboll.cc/studio/details.php?app=AES");
|
||||||
|
appInfo.setAppAPKName("AES");
|
||||||
|
appInfo.setAppAPKFolderName("AES");
|
||||||
|
return new AboutView(mContext, appInfo);
|
||||||
|
}
|
||||||
|
}
|
@ -209,21 +209,5 @@ public class MainActivity extends DrawerFragmentActivity implements IWinBollActi
|
|||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAbout() {
|
|
||||||
String szBranchName = "aes";
|
|
||||||
|
|
||||||
APPInfo appInfo = AboutActivityFactory.buildDefaultAPPInfo();
|
|
||||||
appInfo.setAppName("AES");
|
|
||||||
appInfo.setAppIcon(cc.winboll.studio.libapputils.R.drawable.ic_winboll);
|
|
||||||
appInfo.setAppDescription("AES Description");
|
|
||||||
appInfo.setAppGitName("APP");
|
|
||||||
appInfo.setAppGitOwner("Studio");
|
|
||||||
appInfo.setAppGitAPPBranch(szBranchName);
|
|
||||||
appInfo.setAppGitAPPSubProjectFolder(szBranchName);
|
|
||||||
appInfo.setAppHomePage("https://www.winboll.cc/studio/details.php?app=AES");
|
|
||||||
appInfo.setAppAPKName("AES");
|
|
||||||
appInfo.setAppAPKFolderName("AES");
|
|
||||||
AboutActivityFactory.showAboutActivity(this, appInfo);
|
|
||||||
//ToastUtils.show("onAbout");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
9
aes/src/main/res/layout/activity_about.xml
Normal file
9
aes/src/main/res/layout/activity_about.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
</LinearLayout>
|
@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Mon Mar 24 12:49:28 GMT 2025
|
#Mon Mar 24 15:40:14 GMT 2025
|
||||||
stageCount=6
|
stageCount=6
|
||||||
libraryProject=libaes
|
libraryProject=libaes
|
||||||
baseVersion=15.0
|
baseVersion=15.0
|
||||||
publishVersion=15.0.5
|
publishVersion=15.0.5
|
||||||
buildCount=7
|
buildCount=8
|
||||||
baseBetaVersion=15.0.6
|
baseBetaVersion=15.0.6
|
||||||
|
@ -47,13 +47,14 @@ public class APPInfo implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public APPInfo() {
|
public APPInfo() {
|
||||||
this.appName = "WinBoll-APP";
|
String szBranchName = "app";
|
||||||
|
this.appName = "APP";
|
||||||
this.appIcon = R.drawable.ic_launcher;
|
this.appIcon = R.drawable.ic_launcher;
|
||||||
this.appDescription = "WinBoll APP";
|
this.appDescription = "APP Description";
|
||||||
this.appGitName = "APP";
|
this.appGitName = "APP";
|
||||||
this.appGitOwner = "Studio";
|
this.appGitOwner = "Studio";
|
||||||
this.appGitAPPBranch = "app";
|
this.appGitAPPBranch = szBranchName;
|
||||||
this.appGitAPPSubProjectFolder = "app";
|
this.appGitAPPSubProjectFolder = szBranchName;
|
||||||
this.appHomePage = "https://www.winboll.cc/studio/details.php?app=APP";
|
this.appHomePage = "https://www.winboll.cc/studio/details.php?app=APP";
|
||||||
this.appAPKName = "APP";
|
this.appAPKName = "APP";
|
||||||
this.appAPKFolderName = "APP";
|
this.appAPKFolderName = "APP";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user