Compare commits

...

6 Commits

Author SHA1 Message Date
ZhanGSKen
13e0ad3f03 <timestamp>APK 15.0.6 release Publish. 2025-05-06 20:37:48 +08:00
ZhanGSKen
be85ef923e 更新应用图标,优化状态栏UI。 2025-05-06 20:36:51 +08:00
ZhanGSKen
9a3383a43b <timestamp>APK 15.0.5 release Publish. 2025-05-06 18:33:59 +08:00
ZhanGSKen
d875b6965d <timestamp>APK 15.0.4 release Publish. 2025-05-06 18:33:32 +08:00
ZhanGSKen
bc873852c2 修复时间戳复制格式设置未保存问题 2025-05-06 18:32:51 +08:00
ZhanGSKen
b032de55dc 添加说明书 2025-05-06 18:14:34 +08:00
8 changed files with 21 additions and 12 deletions

6
timestamp/README.md Normal file
View File

@@ -0,0 +1,6 @@
## TimpStamp
## 时间戳工具集
## 使用要点:
1。常驻通知栏按钮的正常使用
需要设置允许应用[写入剪贴板]的[始终允许]权限。

View File

@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Tue May 06 18:01:46 HKT 2025
stageCount=4
#Tue May 06 20:37:48 HKT 2025
stageCount=7
libraryProject=
baseVersion=15.0
publishVersion=15.0.3
publishVersion=15.0.6
buildCount=0
baseBetaVersion=15.0.4
baseBetaVersion=15.0.7

View File

@@ -14,8 +14,8 @@
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:icon="@drawable/ic_launcher"
android:roundIcon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MyAppTheme"
android:resizeableActivity="true"

View File

@@ -219,7 +219,7 @@ public class MainService extends Service {
String szTimeStampFormatString = AppConfigsUtil.getInstance(MainService.this).getAppConfigsModel().getTimeStampFormatString();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(szTimeStampFormatString);
String formattedDateTime = ldt.format(formatter);
TimeStampRemoteViewsUtil.getInstance(MainService.this).showNotification(formattedDateTime + " 已复制");
TimeStampRemoteViewsUtil.getInstance(MainService.this).showNotification("时间戳:\n" + formattedDateTime + "\n已拷贝到剪贴板。");
LogUtils.d(TAG, "Hello, World! " + formattedDateTime);
break;

View File

@@ -63,6 +63,7 @@ public class AppConfigsModel extends BaseBean {
super.writeThisToJsonWriter(jsonWriter);
jsonWriter.name("isEnableService").value(isEnableService());
jsonWriter.name("timeStampFormatString").value(getTimeStampFormatString());
jsonWriter.name("timeStampCopyFormatString").value(getTimeStampCopyFormatString());
}
@Override
@@ -72,6 +73,8 @@ public class AppConfigsModel extends BaseBean {
setIsEnableService(jsonReader.nextBoolean());
} else if (name.equals("timeStampFormatString")) {
setTimeStampFormatString(jsonReader.nextString());
} else if (name.equals("timeStampCopyFormatString")) {
setTimeStampCopyFormatString(jsonReader.nextString());
} else {
return false;
}

View File

@@ -39,7 +39,7 @@ public class ButtonClickReceiver extends BroadcastReceiver {
ClipboardUtil.copyTextToClipboard(context, formattedDateTime);
// 比如显示一个Toast
Toast.makeText(context, formattedDateTime + " 已复制", Toast.LENGTH_SHORT).show();
Toast.makeText(context, "时间戳:\n" + formattedDateTime + "\n已拷贝到剪贴板。", Toast.LENGTH_SHORT).show();
MainService.updateCopiedTimeStamp();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -17,10 +17,10 @@
android:layout_weight="1.0"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="复制时间戳"
android:id="@+id/btn_copytimestamp"/>
android:layout_width="60dp"
android:layout_height="60dp"
android:id="@+id/btn_copytimestamp"
android:background="@drawable/ic_launcher"/>
</LinearLayout>