mirror of
https://gitea.winboll.cc/ZhanGSKen/MyWinBoLL.git
synced 2026-08-14 13:37:11 +08:00
feat: 添加任务排档功能
- 新增 TaskSchedulerActivity 任务排档页面 - 新增 ic_task_scheduler 任务排档专用图标 - 新增 activity_task_scheduler 任务排档布局文件 - 在主界面添加任务排档入口按钮 - 在 AndroidManifest.xml 中注册新 Activity - 在 MainActivity 中添加跳转逻辑
This commit is contained in:
@@ -42,8 +42,10 @@
|
||||
android:name="cc.winboll.studio.stallhelper.activities.CompleteDiningTableActivity"
|
||||
android:windowSoftInputMode="adjustResize"/>
|
||||
|
||||
<activity android:name="cc.winboll.studio.stallhelper.activities.NoteRecordHelperActivity"/>
|
||||
<activity android:name="cc.winboll.studio.stallhelper.activities.NoteRecordHelperActivity"/>
|
||||
|
||||
</application>
|
||||
<activity android:name="cc.winboll.studio.stallhelper.activities.TaskSchedulerActivity"/>
|
||||
|
||||
</manifest>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -13,6 +13,7 @@ import cc.winboll.studio.stallhelper.activities.AboutActivity;
|
||||
import cc.winboll.studio.stallhelper.activities.CompleteDiningTableActivity;
|
||||
import cc.winboll.studio.stallhelper.activities.NoteRecordHelperActivity;
|
||||
import cc.winboll.studio.stallhelper.activities.PreNullDiningTableActivity;
|
||||
import cc.winboll.studio.stallhelper.activities.TaskSchedulerActivity;
|
||||
import cc.winboll.studio.stallhelper.activities.WinBoLLActivity;
|
||||
|
||||
final public class MainActivity extends WinBoLLActivity {
|
||||
@@ -126,4 +127,9 @@ final public class MainActivity extends WinBoLLActivity {
|
||||
Intent intent = new Intent(getApplicationContext(), NoteRecordHelperActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
public void onTaskScheduler(View view) {
|
||||
Intent intent = new Intent(getApplicationContext(), TaskSchedulerActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package cc.winboll.studio.stallhelper.activities;
|
||||
|
||||
import android.os.Bundle;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import cc.winboll.studio.libappbase.LogUtils;
|
||||
import cc.winboll.studio.stallhelper.R;
|
||||
|
||||
/**
|
||||
* @Author ZhanGSKen
|
||||
* @Date 2026/05/18
|
||||
* @Describe 任务排档窗口
|
||||
*/
|
||||
public class TaskSchedulerActivity extends AppCompatActivity {
|
||||
|
||||
public static final String TAG = "TaskSchedulerActivity";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_task_scheduler);
|
||||
LogUtils.i(TAG, "onCreate: 任务排档页面初始化");
|
||||
|
||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||
setSupportActionBar(toolbar);
|
||||
setTitle("任务排档");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="256dp"
|
||||
android:height="256dp"
|
||||
android:viewportWidth="256"
|
||||
android:viewportHeight="256">
|
||||
<!-- 背景圆形 -->
|
||||
<path
|
||||
android:fillColor="#FF4CAF50"
|
||||
android:strokeColor="#FF4CAF50"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M128,44 C81.4,44 44,81.4 44,128 C44,174.6 81.4,212 128,212 C174.6,212 212,174.6 212,128 C212,81.4 174.6,44 128,44 Z"/>
|
||||
<!-- 文档/列表背景 -->
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:strokeColor="#FFFFFFFF"
|
||||
android:strokeWidth="2.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M85,80 L171,80 L171,180 L85,180 L85,80 Z"/>
|
||||
<!-- 列表线1 -->
|
||||
<path
|
||||
android:fillColor="#FF333333"
|
||||
android:strokeColor="#FF333333"
|
||||
android:strokeWidth="4.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M100,100 L156,100"/>
|
||||
<!-- 列表线2 -->
|
||||
<path
|
||||
android:fillColor="#FF333333"
|
||||
android:strokeColor="#FF333333"
|
||||
android:strokeWidth="4.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M100,120 L156,120"/>
|
||||
<!-- 列表线3 -->
|
||||
<path
|
||||
android:fillColor="#FF333333"
|
||||
android:strokeColor="#FF333333"
|
||||
android:strokeWidth="4.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M100,140 L156,140"/>
|
||||
<!-- 勾选标记 -->
|
||||
<path
|
||||
android:fillColor="#FF4CAF50"
|
||||
android:strokeColor="#FF4CAF50"
|
||||
android:strokeWidth="4.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M95,98 L101,104 L115,90"/>
|
||||
<!-- 时钟指针暗示 -->
|
||||
<path
|
||||
android:fillColor="#FF4CAF50"
|
||||
android:strokeColor="#FF4CAF50"
|
||||
android:strokeWidth="4.0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeMiterLimit="10"
|
||||
android:pathData="M128,150 L128,168 L144,168"/>
|
||||
</vector>
|
||||
@@ -67,30 +67,53 @@
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/bg_frame"
|
||||
android:onClick="onNoteRecordHelper">
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/bg_frame"
|
||||
android:onClick="onNoteRecordHelper">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/colorCompleteBackgroung"
|
||||
android:src="@drawable/ic_noterecordhelper"
|
||||
android:layout_margin="10dp"/>
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/colorCompleteBackgroung"
|
||||
android:src="@drawable/ic_noterecordhelper"
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="订单笔录辅助"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="订单笔录辅助"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/bg_frame"
|
||||
android:onClick="onTaskScheduler">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:background="@color/colorPreNullBackgroung"
|
||||
android:src="@drawable/ic_task_scheduler"
|
||||
android:layout_margin="10dp"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="任务排档"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="?attr/activityBackgroundColor">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/toolbarBackgroundColor"
|
||||
android:id="@+id/toolbar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="任务排档"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="功能开发中..."
|
||||
android:textSize="16sp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user