Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
972748e7
Commit
972748e7
authored
Dec 26, 2022
by
Kazuyuki Hida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ステータス別作業数のリスト表示を実装した
parent
85ca0555
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
123 additions
and
26 deletions
+123
-26
ABVJE_UI_Android/res/layout-large/item_operation_list.xml
+40
-1
ABVJE_UI_Android/res/layout-large/item_operation_panel.xml
+16
-8
ABVJE_UI_Android/res/layout-normal/item_operation_list.xml
+44
-1
ABVJE_UI_Android/res/layout-normal/item_operation_panel.xml
+3
-3
ABVJE_UI_Android/res/values-large-land/dimens.xml
+0
-5
ABVJE_UI_Android/res/values-large-port/dimens.xml
+0
-5
ABVJE_UI_Android/res/values/dimens.xml
+6
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationListAdapter.java
+14
-0
No files found.
ABVJE_UI_Android/res/layout-large/item_operation_list.xml
View file @
972748e7
...
...
@@ -66,10 +66,49 @@
android:textSize=
"@dimen/operation_date_text_size"
/>
</LinearLayout>
<Space
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
<TextView
android:id=
"@+id/report_count_not_started"
android:layout_width=
"@dimen/report_status_width_1"
android:layout_height=
"@dimen/report_status_height_1"
android:layout_margin=
"4dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"9pt"
android:gravity=
"center"
android:background=
"@color/marking_color_9"
/>
<TextView
android:id=
"@+id/report_count_working"
android:layout_width=
"@dimen/report_status_width_1"
android:layout_height=
"@dimen/report_status_height_1"
android:layout_margin=
"4dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"9pt"
android:gravity=
"center"
android:background=
"@color/app_color"
/>
<TextView
android:id=
"@+id/report_count_completed"
android:layout_width=
"@dimen/report_status_width_1"
android:layout_height=
"@dimen/report_status_height_1"
android:layout_margin=
"4dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"9pt"
android:gravity=
"center"
android:background=
"@color/marking_color_8"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"
1
0dp"
android:layout_marginRight=
"
2
0dp"
android:orientation=
"horizontal"
>
<ImageButton
...
...
ABVJE_UI_Android/res/layout-large/item_operation_panel.xml
View file @
972748e7
...
...
@@ -44,11 +44,23 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginRight=
"10dp"
/>
</LinearLayout>
<Space
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:orientation=
"horizontal"
android:layout_marginRight=
"10dp"
>
<TextView
android:id=
"@+id/report_count_not_started"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
@@ -59,7 +71,7 @@
<TextView
android:id=
"@+id/report_count_working"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
@@ -70,7 +82,7 @@
<TextView
android:id=
"@+id/report_count_completed"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
@@ -78,12 +90,8 @@
android:gravity=
"center"
android:background=
"@color/marking_color_8"
/>
</LinearLayout>
<Space
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
...
...
ABVJE_UI_Android/res/layout-normal/item_operation_list.xml
View file @
972748e7
...
...
@@ -17,7 +17,7 @@
android:orientation=
"horizontal"
>
<LinearLayout
android:layout_width=
"
match_parent
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"5dp"
android:layout_weight=
"1"
...
...
@@ -40,6 +40,7 @@
android:id=
"@+id/operation_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:maxLines=
"2"
android:ellipsize=
"end"
android:text=
"@string/dummy_str"
...
...
@@ -73,6 +74,48 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_vertical"
android:layout_marginRight=
"10dp"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/report_count_not_started"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height_3"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"8pt"
android:gravity=
"center"
android:background=
"@color/marking_color_9"
/>
<TextView
android:id=
"@+id/report_count_working"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height_3"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"8pt"
android:gravity=
"center"
android:background=
"@color/app_color"
/>
<TextView
android:id=
"@+id/report_count_completed"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height_3"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
android:textSize=
"8pt"
android:gravity=
"center"
android:background=
"@color/marking_color_8"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
...
...
ABVJE_UI_Android/res/layout-normal/item_operation_panel.xml
View file @
972748e7
...
...
@@ -47,7 +47,7 @@
<TextView
android:id=
"@+id/report_count_not_started"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
@@ -58,7 +58,7 @@
<TextView
android:id=
"@+id/report_count_working"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
@@ -69,7 +69,7 @@
<TextView
android:id=
"@+id/report_count_completed"
android:layout_width=
"@dimen/report_status_width_2"
android:layout_height=
"@dimen/report_status_height"
android:layout_height=
"@dimen/report_status_height
_2
"
android:layout_margin=
"2dp"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/basic_white1"
...
...
ABVJE_UI_Android/res/values-large-land/dimens.xml
deleted
100644 → 0
View file @
85ca0555
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"report_status_width_1"
>
56dp
</dimen>
<dimen
name=
"report_status_width_2"
>
48dp
</dimen>
</resources>
ABVJE_UI_Android/res/values-large-port/dimens.xml
deleted
100644 → 0
View file @
85ca0555
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"report_status_width_1"
>
56dp
</dimen>
<dimen
name=
"report_status_width_2"
>
48dp
</dimen>
</resources>
ABVJE_UI_Android/res/values/dimens.xml
View file @
972748e7
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"opeartion_title_text_size"
/>
<dimen
name=
"report_status_height"
>
32dp
</dimen>
<dimen
name=
"report_status_width_1"
>
48dp
</dimen>
<dimen
name=
"report_status_height_1"
>
48dp
</dimen>
<dimen
name=
"report_status_height_2"
>
32dp
</dimen>
<dimen
name=
"report_status_height_3"
>
24dp
</dimen>
<dimen
name=
"report_status_width_1"
>
80dp
</dimen>
<dimen
name=
"report_status_width_2"
>
36dp
</dimen>
</resources>
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/adapter/OperationListAdapter.java
View file @
972748e7
...
...
@@ -74,6 +74,11 @@ public class OperationListAdapter extends AbstractOperationAdapter {
// 情報更新関連
holder
.
ivSync
=
convertView
.
findViewById
(
R
.
id
.
btn_sync
);
// ステータス別作業数
holder
.
reportCountNotStarted
=
convertView
.
findViewById
(
R
.
id
.
report_count_not_started
);
holder
.
reportCountWorking
=
convertView
.
findViewById
(
R
.
id
.
report_count_working
);
holder
.
reportCountCompleted
=
convertView
.
findViewById
(
R
.
id
.
report_count_completed
);
convertView
.
setTag
(
holder
);
}
else
{
holder
=
(
ViewHolder
)
convertView
.
getTag
();
...
...
@@ -123,6 +128,10 @@ public class OperationListAdapter extends AbstractOperationAdapter {
holder
.
ivSync
.
setVisibility
(
View
.
INVISIBLE
);
}
holder
.
reportCountNotStarted
.
setText
(
String
.
valueOf
(
operationDto
.
statusNotStartedCount
));
holder
.
reportCountWorking
.
setText
(
String
.
valueOf
(
operationDto
.
statusWorkingCount
));
holder
.
reportCountCompleted
.
setText
(
String
.
valueOf
(
operationDto
.
statusCompletedCount
));
// 全体のレイアウト(ボタン以外)のタップ処理
holder
.
listLayout
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
@@ -154,6 +163,11 @@ public class OperationListAdapter extends AbstractOperationAdapter {
// 情報更新関連
ImageView
ivSync
;
// ステータス別作業数
TextView
reportCountNotStarted
;
TextView
reportCountWorking
;
TextView
reportCountCompleted
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment