Compare commits

...

4 Commits

Author SHA1 Message Date
ZhanGSKen 000afbe971 <powerbell>APK 15.15.26 release Publish. 2026-07-18 10:40:59 +08:00
ZhanGSKen be3b9360dd 更新源码仓库地址 2026-07-18 10:39:21 +08:00
ZhanGSKen 80da1c63a6 <powerbell>APK 15.15.25 release Publish. 2026-07-18 10:27:47 +08:00
MiMo 75c790417c <powerbell> 优化 ChargeMailNotify 悬浮窗功能
1. 悬浮窗新增点击事件
   - 点击悬浮窗打开应用主窗口 MainActivity
   - 打开主窗口后保持悬浮窗显示

2. 悬浮窗新增应用标题
   - 显示 strings.xml 中的 app_name 字符串
   - 标题样式加粗16sp,与内容区分
2026-07-18 10:26:10 +08:00
4 changed files with 25 additions and 5 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sat Jul 18 10:07:32 HKT 2026
stageCount=25
#Sat Jul 18 10:40:59 HKT 2026
stageCount=27
libraryProject=
baseVersion=15.15
publishVersion=15.15.24
publishVersion=15.15.26
buildCount=0
baseBetaVersion=15.15.25
baseBetaVersion=15.15.27
@@ -68,7 +68,7 @@ public class AboutActivity extends WinBoLLActivity {
appInfo.setAppName(getString(R.string.app_name));
appInfo.setAppIcon(R.drawable.ic_winboll);
appInfo.setAppDescription(getString(R.string.app_description));
appInfo.setAppGitName("MyWinBoLL");
appInfo.setAppGitName("PowerBell");
appInfo.setAppGitOwner("ZhanGSKen");
appInfo.setAppGitAPPBranch(branchName);
appInfo.setAppGitAPPSubProjectFolder(branchName);
@@ -1,6 +1,7 @@
package cc.winboll.studio.powerbell.utils;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Build;
import android.view.Gravity;
@@ -8,6 +9,7 @@ import android.view.View;
import android.view.WindowManager;
import cc.winboll.studio.libappbase.LogUtils;
import cc.winboll.studio.powerbell.R;
import cc.winboll.studio.powerbell.MainActivity;
/**
* 充电邮件通知悬浮窗工具类(单例)
@@ -84,6 +86,16 @@ public class ChargeMailNotifyFloatWindow {
// 加载悬浮窗布局
mView = View.inflate(mContext, R.layout.view_charge_mail_notify, null);
// 点击悬浮窗打开主窗口
mView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
LogUtils.d(TAG, "onClick: 悬浮窗被点击,打开主窗口");
Intent intent = new Intent(mContext, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
}
});
mWindowManager.addView(mView, params);
LogUtils.d(TAG, "show() 悬浮窗显示成功");
} catch (Exception e) {
@@ -20,6 +20,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_name"
android:textColor="#FF000000"
android:textSize="16sp"
android:textStyle="bold"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"