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
fb34f60a
Commit
fb34f60a
authored
Sep 04, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nexus9(OS 6)で図面タイプでフォームの切り替え(報告・回答)が正常に表示されない問題修正
デバッグモード時はWebViewをデバッグ可能とする設定追加
parent
709e3352
Show 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/EnqueteLayout.java
+9
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/EnqueteLayout.java
View file @
fb34f60a
...
...
@@ -111,12 +111,14 @@ public class EnqueteLayout extends RelativeLayout {
mWebView
=
webView
;
}
else
{
mWebView
=
new
EnqueteWebView
(
context
);
WebSettings
settings
=
mWebView
.
getSettings
();
mWebView
.
getSettings
().
setJavaScriptEnabled
(
true
);
// OS 6でフォームの切り替え時(報告・回答)に、正常に表示されない問題が発生したため、OS 6は以下のWebViewに設定を行う
if
(
Build
.
VERSION
.
SDK_INT
==
Build
.
VERSION_CODES
.
M
)
{
WebSettings
settings
=
mWebView
.
getSettings
();
settings
.
setSupportMultipleWindows
(
true
);
// 新しいウィンドウを開くイベントを取得する
settings
.
setLoadsImagesAutomatically
(
true
);
// イメージを自動的にロードする
settings
.
setBuiltInZoomControls
(
true
);
// ズーム機能を有効にする
settings
.
setSupportZoom
(
true
);
// ズーム機能を有効にする
settings
.
setJavaScriptEnabled
(
true
);
// JavaScriptを有効にする
settings
.
setLoadWithOverviewMode
(
true
);
// 画面の横幅にページの横幅を合わせる
settings
.
setUseWideViewPort
(
true
);
// 画面の横幅にページの横幅を合わせる
//noinspection deprecation(API18から非推奨になった。無視)
...
...
@@ -124,6 +126,11 @@ public class EnqueteLayout extends RelativeLayout {
settings
.
setDomStorageEnabled
(
true
);
// WebStorage有効化
settings
.
setAppCacheEnabled
(
false
);
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
}
if
(
Logger
.
isDebugEnabled
())
{
mWebView
.
setWebContentsDebuggingEnabled
(
true
);
//デバッグモード(chromeからinspect可)
}
mWebView
.
setHorizontalScrollBarEnabled
(
true
);
mWebView
.
setVerticalScrollBarEnabled
(
true
);
...
...
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