From 21e38bfe17d3077d7ab0e05ee065f59547536692 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期二, 03 十二月 2024 10:33:19 +0800 Subject: [PATCH] 1.添加当前巡检状态的功能。 2.修复工单界面刷新已完成列表导致未完成列表数据被清除的bug --- app/src/main/java/com/dayu/pipirrapp/adapter/TabAdapter.java | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/dayu/pipirrapp/adapter/TabAdapter.java b/app/src/main/java/com/dayu/pipirrapp/adapter/TabAdapter.java index 347c4b8..6d5bd0e 100644 --- a/app/src/main/java/com/dayu/pipirrapp/adapter/TabAdapter.java +++ b/app/src/main/java/com/dayu/pipirrapp/adapter/TabAdapter.java @@ -35,9 +35,22 @@ return 3; // 鍋囪鏈変笁涓爣绛� } -// @Override -// public CharSequence getPageTitle(int position) { -// // 杩斿洖鏍囩鐨勬爣棰� -// return "Tab " + (position + 1); -// } + @Override + public CharSequence getPageTitle(int position) { + String text = ""; + switch (position) { + case 0: + text = "棣栭〉"; + break; + case 1: + text = "鍦板浘"; + break; + case 2: + text = "鎴戠殑"; + break; + } + + // 杩斿洖鏍囩鐨勬爣棰� + return text; + } } -- Gitblit v1.8.0