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
04e51e27
Commit
04e51e27
authored
Dec 10, 2020
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify footer toolbar
parent
82126852
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
85 deletions
+37
-85
ABVJE_UI_Android/res/layout/chat_webview.xml
+0
-66
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+37
-19
No files found.
ABVJE_UI_Android/res/layout/chat_webview.xml
View file @
04e51e27
...
@@ -50,70 +50,5 @@
...
@@ -50,70 +50,5 @@
</FrameLayout>
</FrameLayout>
<LinearLayout
android:id=
"@+id/toolbar2"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:background=
"@drawable/bottom_toolbar_border"
android:minHeight=
"50dp"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_operation_home"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_operation_home"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_common_content"
style=
"@style/ToolBarIcon"
android:src=
"@drawable/btn_common_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_communication_menu"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_communication_menu"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
>
<ImageButton
android:id=
"@+id/btn_setting"
style=
"@style/ToolBarIcon"
android:layout_centerVertical=
"true"
android:src=
"@drawable/ic_operation_setting"
android:onClick=
"onClickSetting"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
04e51e27
...
@@ -332,25 +332,6 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -332,25 +332,6 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
}
});
});
// ホームボタン(作業一覧へ遷移ボタン)
mOperationHomeButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_operation_home
);
// 共通資料ボタン
mOperationRelatedContentButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_common_content
);
// 共通関連資料ボタン
mOperationRelatedContentButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
mChatWebView
.
loadUrl
(
"javascript:CHAT.leaveRoom()"
);
finish
();
showCommonContent
();
}
});
communicationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_communication_menu
);
// Toolbar
settingBottomToolbar
();
setOnButtonEvent
();
}
}
@Override
@Override
...
@@ -584,6 +565,43 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
...
@@ -584,6 +565,43 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
});
});
}
}
@JavascriptInterface
public
void
goHome
()
{
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
backToHome
();
}
});
}
@JavascriptInterface
public
void
openOperationRelatedContent
()
{
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
showCommonContent
();
}
});
}
@JavascriptInterface
public
void
openCommunication
()
{
showCommunicationMenuDialog
();
}
@JavascriptInterface
public
void
openSetting
()
{
mChatWebView
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mChatWebView
.
loadUrl
(
"javascript:CHAT.leaveRoom()"
);
finish
();
showSetting
();
}
});
}
}
}
/**
/**
...
...
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