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
9edf332f
Commit
9edf332f
authored
Aug 02, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugの時のみ、WebViewをinspect可能とする
parent
30ad4bb2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+2
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+2
-1
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
9edf332f
...
@@ -103,7 +103,9 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
...
@@ -103,7 +103,9 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
webView
=
(
WebView
)
findViewById
(
R
.
id
.
webView2
);
webView
=
(
WebView
)
findViewById
(
R
.
id
.
webView2
);
webView
.
setVisibility
(
View
.
VISIBLE
);
webView
.
setVisibility
(
View
.
VISIBLE
);
webView
.
setVerticalScrollbarOverlay
(
true
);
// スクロールバー部分の隙間を消す
webView
.
setVerticalScrollbarOverlay
(
true
);
// スクロールバー部分の隙間を消す
if
(
Logger
.
isDebugEnabled
())
{
webView
.
setWebContentsDebuggingEnabled
(
true
);
//デバッグモード(chromeからinspect可)
webView
.
setWebContentsDebuggingEnabled
(
true
);
//デバッグモード(chromeからinspect可)
}
// webView.setWebViewClient(new WebViewClient());
// webView.setWebViewClient(new WebViewClient());
// //ブラウザの描画領域を対象としたイベントをフック
// //ブラウザの描画領域を対象としたイベントをフック
WebSettings
settings
=
webView
.
getSettings
();
WebSettings
settings
=
webView
.
getSettings
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
View file @
9edf332f
...
@@ -119,8 +119,9 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
...
@@ -119,8 +119,9 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
settings
.
setUseWideViewPort
(
true
);
// 画面の横幅にページの横幅を合わせる
settings
.
setUseWideViewPort
(
true
);
// 画面の横幅にページの横幅を合わせる
settings
.
setDomStorageEnabled
(
true
);
// WebStorage有効化
settings
.
setDomStorageEnabled
(
true
);
// WebStorage有効化
settings
.
setCacheMode
(
XWalkSettings
.
LOAD_NO_CACHE
);
settings
.
setCacheMode
(
XWalkSettings
.
LOAD_NO_CACHE
);
if
(
Logger
.
isDebugEnabled
())
{
XWalkPreferences
.
setValue
(
XWalkPreferences
.
REMOTE_DEBUGGING
,
true
);
//デバッグモード(chromeからinspect可)
XWalkPreferences
.
setValue
(
XWalkPreferences
.
REMOTE_DEBUGGING
,
true
);
//デバッグモード(chromeからinspect可)
}
final
RelativeLayout
fl
=
(
RelativeLayout
)
findViewById
(
R
.
id
.
frameTopbar
);
final
RelativeLayout
fl
=
(
RelativeLayout
)
findViewById
(
R
.
id
.
frameTopbar
);
...
...
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