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
81cb69bf
Commit
81cb69bf
authored
Mar 05, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32775_作業指示タップ・タップモード切替で指示者と作業者の制御
parent
040cfa61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
31 deletions
+40
-31
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+21
-12
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+19
-19
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
81cb69bf
...
@@ -5043,19 +5043,28 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -5043,19 +5043,28 @@ public class ContentViewActivity extends ABVContentViewActivity {
//
//
btnMoveOrClickToggleIcon
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_move_click_toggle
);
btnMoveOrClickToggleIcon
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_move_click_toggle
);
btnMoveOrClickToggleIcon
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
if
(
isDirector
())
{
public
void
onClick
(
View
v
)
{
// 指示者の場合
mMoveTaskFlg
=
!
mMoveTaskFlg
;
btnMoveOrClickToggleIcon
.
setVisibility
(
View
.
VISIBLE
);
if
(
mMoveTaskFlg
)
{
btnMoveOrClickToggleIcon
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
// タップモードのイメージ
@Override
btnMoveOrClickToggleIcon
.
setImageResource
(
R
.
drawable
.
ic_hidden_move
);
public
void
onClick
(
View
v
)
{
}
else
{
mMoveTaskFlg
=
!
mMoveTaskFlg
;
// 移動モードのイメージ
if
(
mMoveTaskFlg
)
{
btnMoveOrClickToggleIcon
.
setImageResource
(
R
.
drawable
.
ic_show_move
);
// タップモードのイメージ
btnMoveOrClickToggleIcon
.
setImageResource
(
R
.
drawable
.
ic_hidden_move
);
}
else
{
// 移動モードのイメージ
btnMoveOrClickToggleIcon
.
setImageResource
(
R
.
drawable
.
ic_show_move
);
}
}
}
}
});
});
}
else
{
// 作業者の場合
btnMoveOrClickToggleIcon
.
setVisibility
(
View
.
INVISIBLE
);
}
// ピンと作業コードの切替ボタン
// ピンと作業コードの切替ボタン
btnPinToggleIcon
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_pin_toggle
);
btnPinToggleIcon
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_pin_toggle
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
81cb69bf
...
@@ -250,28 +250,28 @@ public class OperationTaskLayout extends RelativeLayout {
...
@@ -250,28 +250,28 @@ public class OperationTaskLayout extends RelativeLayout {
}
}
}
}
if
(
rootLayout
.
isEnableOperationTaskNewOrMove
())
{
// 作業のタップイベント
taskView
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
taskView
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
@Override
@Override
public
boolean
onTouch
(
View
view
,
MotionEvent
event
)
{
public
boolean
onTouch
(
View
view
,
MotionEvent
event
)
{
if
(
mContext
.
mMoveTaskFlg
)
{
if
(
mContext
.
mMoveTaskFlg
&&
rootLayout
.
isEnableOperationTaskNewOrMove
()
)
{
if
(
event
.
getAction
()
==
MotionEvent
.
ACTION_DOWN
)
{
// 指示者且つ、移動モードの場合
ClipData
data
=
ClipData
.
newPlainText
(
""
,
""
);
if
(
event
.
getAction
()
==
MotionEvent
.
ACTION_DOWN
)
{
View
.
DragShadowBuilder
shadowBuilder
=
new
View
.
DragShadowBuilder
(
view
);
ClipData
data
=
ClipData
.
newPlainText
(
""
,
""
);
view
.
startDrag
(
data
,
shadowBuilder
,
view
,
0
);
View
.
DragShadowBuilder
shadowBuilder
=
new
View
.
DragShadowBuilder
(
view
);
mContext
.
setCurrentOperationTask
(
dto
);
view
.
startDrag
(
data
,
shadowBuilder
,
view
,
0
);
}
mContext
.
setCurrentOperationTask
(
dto
);
}
else
{
}
if
(
event
.
getAction
()
==
MotionEvent
.
ACTION_UP
)
{
}
else
{
if
(!
mContext
.
getOpenedProjestTask
()
)
{
if
(
event
.
getAction
()
==
MotionEvent
.
ACTION_UP
)
{
mContext
.
showOperationTaskLayout
(
rootLayout
,
dto
,
view
.
getX
());
if
(!
mContext
.
getOpenedProjestTask
())
{
}
mContext
.
showOperationTaskLayout
(
rootLayout
,
dto
,
view
.
getX
());
}
}
}
}
return
true
;
}
}
});
return
true
;
}
}
});
}
}
public
void
addAllOperationTaskIcon
(
final
ZoomRelativeLayout
rootLayout
,
final
List
<
OperationTaskDto
>
dto
)
{
public
void
addAllOperationTaskIcon
(
final
ZoomRelativeLayout
rootLayout
,
final
List
<
OperationTaskDto
>
dto
)
{
...
...
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