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
82a59ce3
Commit
82a59ce3
authored
Jul 11, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
図面タイプでフォームのサイズ修正(タブレット)
parent
96a04baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+9
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
82a59ce3
...
...
@@ -52,7 +52,7 @@ public class OperationTaskLayout extends RelativeLayout {
private
static
final
int
CODE_WIDTH
=
46
;
private
static
final
int
CODE_HEIGHT
=
26
;
public
static
final
int
HALF_WIDTH
=
34
0
;
public
static
final
int
HALF_WIDTH
=
40
0
;
public
static
final
int
COLOR_ORANGE
=
Color
.
rgb
(
255
,
119
,
0
);
public
static
final
int
COLOR_BLUE
=
Color
.
rgb
(
27
,
27
,
210
);
...
...
@@ -99,7 +99,14 @@ public class OperationTaskLayout extends RelativeLayout {
mWebView
.
loadUrl
(
linkUrl
);
RelativeLayout
.
LayoutParams
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
);
RelativeLayout
.
LayoutParams
params
;
if
(
isNormalSize
)
{
params
=
createParam
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
MATCH_PARENT
);
}
else
{
DisplayMetrics
displayMetrics
=
getResources
().
getDisplayMetrics
();
int
halfWidth
=
(
int
)
(
displayMetrics
.
density
*
OperationTaskLayout
.
HALF_WIDTH
);
params
=
createParam
(
halfWidth
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
}
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_TOP
);
params
.
addRule
(
RelativeLayout
.
ALIGN_PARENT_RIGHT
);
addView
(
mWebView
,
params
);
...
...
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