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
ff95d636
Commit
ff95d636
authored
Feb 27, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32576 作業指示ボタンの改善(ピン表示)バリデーション処理
parent
a0a9c467
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+14
-17
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionProjectTaskPin.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ZoomRelativeLayout.java
+0
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
ff95d636
...
@@ -19,8 +19,6 @@ import android.graphics.Color;
...
@@ -19,8 +19,6 @@ import android.graphics.Color;
import
android.graphics.Matrix
;
import
android.graphics.Matrix
;
import
android.graphics.Paint
;
import
android.graphics.Paint
;
import
android.graphics.Path
;
import
android.graphics.Path
;
import
android.graphics.Point
;
import
android.graphics.PointF
;
import
android.graphics.RectF
;
import
android.graphics.RectF
;
import
android.graphics.drawable.BitmapDrawable
;
import
android.graphics.drawable.BitmapDrawable
;
import
android.graphics.drawable.Drawable
;
import
android.graphics.drawable.Drawable
;
...
@@ -73,10 +71,8 @@ import org.json.adf.JSONArray;
...
@@ -73,10 +71,8 @@ import org.json.adf.JSONArray;
import
org.json.adf.JSONException
;
import
org.json.adf.JSONException
;
import
org.json.adf.JSONObject
;
import
org.json.adf.JSONObject
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -117,11 +113,9 @@ import jp.agentec.abook.abv.bl.logic.EnqueteLogic;
...
@@ -117,11 +113,9 @@ import jp.agentec.abook.abv.bl.logic.EnqueteLogic;
import
jp.agentec.abook.abv.bl.websocket.MeetingManager
;
import
jp.agentec.abook.abv.bl.websocket.MeetingManager
;
import
jp.agentec.abook.abv.cl.environment.DeviceInfo
;
import
jp.agentec.abook.abv.cl.environment.DeviceInfo
;
import
jp.agentec.abook.abv.cl.helper.ContentMarkingFileHelper
;
import
jp.agentec.abook.abv.cl.helper.ContentMarkingFileHelper
;
import
jp.agentec.abook.abv.cl.util.AndroidStringUtil
;
import
jp.agentec.abook.abv.cl.util.BitmapUtil
;
import
jp.agentec.abook.abv.cl.util.BitmapUtil
;
import
jp.agentec.abook.abv.cl.util.ContentLogUtil
;
import
jp.agentec.abook.abv.cl.util.ContentLogUtil
;
import
jp.agentec.abook.abv.cl.util.PreferenceUtil
;
import
jp.agentec.abook.abv.cl.util.PreferenceUtil
;
import
jp.agentec.abook.abv.launcher.android.PDFFileProvider
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.launcher.android.R
;
import
jp.agentec.abook.abv.launcher.android.R.id
;
import
jp.agentec.abook.abv.launcher.android.R.id
;
import
jp.agentec.abook.abv.ui.common.activity.ABVContentViewActivity
;
import
jp.agentec.abook.abv.ui.common.activity.ABVContentViewActivity
;
...
@@ -141,8 +135,6 @@ import jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow;
...
@@ -141,8 +135,6 @@ import jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow;
import
jp.agentec.abook.abv.ui.common.vo.Size
;
import
jp.agentec.abook.abv.ui.common.vo.Size
;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ContentViewHelper
;
import
jp.agentec.abook.abv.ui.home.helper.ContentViewHelper.LinkContentStatus
;
import
jp.agentec.abook.abv.ui.Interface.MovePageInterface
;
import
jp.agentec.abook.abv.ui.Interface.MovePageInterface
;
import
jp.agentec.abook.abv.ui.Interface.UnAuthorizedContentListener
;
import
jp.agentec.abook.abv.ui.Interface.UnAuthorizedContentListener
;
import
jp.agentec.abook.abv.ui.viewer.adapter.ContentBookmarkAdapter
;
import
jp.agentec.abook.abv.ui.viewer.adapter.ContentBookmarkAdapter
;
...
@@ -177,8 +169,6 @@ import jp.agentec.abook.abv.ui.viewer.view.action.TapMediaPlayer;
...
@@ -177,8 +169,6 @@ import jp.agentec.abook.abv.ui.viewer.view.action.TapMediaPlayer;
import
jp.agentec.abook.abv.ui.viewer.view.action.VideoMountAction
;
import
jp.agentec.abook.abv.ui.viewer.view.action.VideoMountAction
;
import
jp.agentec.adf.net.http.HttpDownloadSimpleNotification
;
import
jp.agentec.adf.net.http.HttpDownloadSimpleNotification
;
import
jp.agentec.adf.net.http.HttpDownloadState
;
import
jp.agentec.adf.net.http.HttpDownloadState
;
import
jp.agentec.adf.util.DateTimeUtil
;
import
jp.agentec.adf.util.DateTimeUtil.DateUnit
;
import
jp.agentec.adf.util.FileUtil
;
import
jp.agentec.adf.util.FileUtil
;
import
jp.agentec.adf.util.StringUtil
;
import
jp.agentec.adf.util.StringUtil
;
...
@@ -274,7 +264,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -274,7 +264,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
private
LinearLayout
mScaleZoomLayout
;
private
LinearLayout
mScaleZoomLayout
;
private
boolean
isOpenedProjectTask
=
false
;
private
boolean
isOpenedProjectTask
=
false
;
private
TaskHotspotJSON
mTaskHotspotJSON
;
private
TaskHotspotJSON
mTaskHotspotJSON
;
protected
ImageButton
btnChange
Pi
n
;
protected
ImageButton
btnChange
Ico
n
;
protected
ImageButton
btnHideTaskDirectBtn
;
protected
ImageButton
btnHideTaskDirectBtn
;
protected
ImageButton
btnScaleZoomPlus
;
protected
ImageButton
btnScaleZoomPlus
;
protected
ImageButton
btnScaleZoom03
;
protected
ImageButton
btnScaleZoom03
;
...
@@ -5033,16 +5023,16 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -5033,16 +5023,16 @@ public class ContentViewActivity extends ABVContentViewActivity {
mScaleZoomLayout
.
setVisibility
(
View
.
VISIBLE
);
mScaleZoomLayout
.
setVisibility
(
View
.
VISIBLE
);
mMainLayout
.
addView
(
mScaleZoomLayout
,
params
);
mMainLayout
.
addView
(
mScaleZoomLayout
,
params
);
btnChange
Pi
n
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_pin
);
btnChange
Ico
n
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
id
.
btn_pin
);
btnChange
Pi
n
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
btnChange
Ico
n
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
mShowPinFlg
=
!
mShowPinFlg
;
mShowPinFlg
=
!
mShowPinFlg
;
changeTask
PinOrCode
(
mShowPinFlg
);
changeTask
MainIcon
(
mShowPinFlg
);
}
}
});
});
btnChange
Pi
n
.
setVisibility
(
View
.
VISIBLE
);
btnChange
Ico
n
.
setVisibility
(
View
.
VISIBLE
);
btnHideTaskDirectBtn
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
R
.
id
.
btn_hide_task_direct
);
btnHideTaskDirectBtn
=
(
ImageButton
)
mScaleZoomLayout
.
findViewById
(
R
.
id
.
btn_hide_task_direct
);
btnHideTaskDirectBtn
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
btnHideTaskDirectBtn
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
@Override
@Override
...
@@ -5198,16 +5188,22 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -5198,16 +5188,22 @@ public class ContentViewActivity extends ABVContentViewActivity {
* 作業のアイコンをピン・作業コードに切替
* 作業のアイコンをピン・作業コードに切替
* @param isShowPin
* @param isShowPin
*/
*/
public
void
changeTaskPinOrCode
(
boolean
isShowPin
)
{
public
void
changeTaskMainIcon
(
boolean
isShowPin
)
{
// mShowPageLayoutに存在するzoomLayoutの子ビューであるActionProjectTaskPin、ActionProjectTaskCodeを全て削除して、新たにアイコンを再描画する
for
(
int
i
=
0
;
i
<
mShowPageLayout
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
mShowPageLayout
.
size
();
i
++)
{
int
key
=
mShowPageLayout
.
keyAt
(
i
);
int
key
=
mShowPageLayout
.
keyAt
(
i
);
ZoomRelativeLayout
zoomRelativeLayout
=
mShowPageLayout
.
get
(
key
);
ZoomRelativeLayout
zoomRelativeLayout
=
mShowPageLayout
.
get
(
key
);
List
<
View
>
deleteViewList
=
new
ArrayList
<
View
>();
for
(
int
j
=
0
;
j
<
zoomRelativeLayout
.
getChildCount
();
j
++)
{
for
(
int
j
=
0
;
j
<
zoomRelativeLayout
.
getChildCount
();
j
++)
{
View
view
=
zoomRelativeLayout
.
getChildAt
(
j
);
View
view
=
zoomRelativeLayout
.
getChildAt
(
j
);
if
(
view
instanceof
ActionProjectTaskCode
||
view
instanceof
ActionProjectTaskPin
)
{
if
(
view
instanceof
ActionProjectTaskCode
||
view
instanceof
ActionProjectTaskPin
)
{
zoomRelativeLayout
.
removeView
(
view
);
// 削除対象のビューをリストViewに追加する
deleteViewList
.
add
(
view
);
}
}
}
}
for
(
View
view
:
deleteViewList
)
{
zoomRelativeLayout
.
removeView
(
view
);
}
List
<
ProjectTaskDto
>
tasks
=
mTaskHotspotJSON
.
getPageTasks
(
i
);
List
<
ProjectTaskDto
>
tasks
=
mTaskHotspotJSON
.
getPageTasks
(
i
);
projectTaskLayout
.
addAllProjectTaskIcon
(
this
,
zoomRelativeLayout
,
tasks
);
projectTaskLayout
.
addAllProjectTaskIcon
(
this
,
zoomRelativeLayout
,
tasks
);
}
}
...
@@ -5271,6 +5267,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -5271,6 +5267,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
Matrix
matrix
=
new
Matrix
();
Matrix
matrix
=
new
Matrix
();
matrix
.
postScale
(
scaleFactor
,
scaleFactor
,
centerX
,
centerY
);
matrix
.
postScale
(
scaleFactor
,
scaleFactor
,
centerX
,
centerY
);
zoomLayout
.
setZoomMatrix
(
matrix
);
zoomLayout
.
setZoomMatrix
(
matrix
);
zoomLayout
.
changeTaskChildView
();
setToolbarVisable
(
false
);
setToolbarVisable
(
false
);
mShowPageLayout
.
get
(
mCurrentPageNumber
).
setScaleFactorAndMatrix
(
scaleFactor
);
mShowPageLayout
.
get
(
mCurrentPageNumber
).
setScaleFactorAndMatrix
(
scaleFactor
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ActionProjectTaskPin.java
View file @
ff95d636
...
@@ -37,8 +37,6 @@ public class ActionProjectTaskPin extends ImageView {
...
@@ -37,8 +37,6 @@ public class ActionProjectTaskPin extends ImageView {
setImageResource
(
R
.
drawable
.
s_pin1
);
setImageResource
(
R
.
drawable
.
s_pin1
);
}
}
setBackgroundColor
(
Color
.
TRANSPARENT
);
setBackgroundColor
(
Color
.
TRANSPARENT
);
setAdjustViewBounds
(
true
);
setScaleType
(
ScaleType
.
FIT_START
);
}
}
public
void
stopAnimation
()
{
public
void
stopAnimation
()
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/ZoomRelativeLayout.java
View file @
ff95d636
This diff is collapsed.
Click to expand it.
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