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
a698ea7e
Commit
a698ea7e
authored
Jul 11, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
図面タイプでフォームのサイズ修正(タブレット)
parent
82a59ce3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+7
-7
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
a698ea7e
...
...
@@ -105,7 +105,7 @@ public class OperationTaskLayout extends RelativeLayout {
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
}
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_TOP
);
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
...
...
@@ -290,12 +290,12 @@ public class OperationTaskLayout extends RelativeLayout {
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
int
screenWidth
=
displayMetrics
.
widthPixels
;
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
}
...
...
@@ -347,12 +347,12 @@ public class OperationTaskLayout extends RelativeLayout {
public
void
setTaskFormPosition
(
float
screenX
,
boolean
isNormalSize
)
{
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
int
screenWidth
=
displayMetrics
.
widthPixels
;
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
if
(
screenX
<
screenWidth
/
2
)
{
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
...
...
@@ -367,14 +367,14 @@ public class OperationTaskLayout extends RelativeLayout {
public
void
setTaskFormPosition
(
String
taskKey
,
boolean
isNormalSize
)
{
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
setLayoutParams
(
params
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONT
ENT
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
MATCH_PAR
ENT
);
if
(!
StringUtil
.
isNullOrEmpty
(
taskKey
))
{
TaskDto
taskDto
=
mTaskDao
.
getTaskByTaskKey
(
taskKey
);
...
...
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