Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Main: Add initial message & allow select text to copy in context menu…
Browse files Browse the repository at this point in the history
… dialog

Signed-off-by: Siubeng Fung <[email protected]>
  • Loading branch information
fython committed Feb 26, 2020
1 parent 8ffd32c commit cef7d22
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/moe/feng/danmaqua/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class MainActivity : BaseActivity(),
supportFragmentManager.commit {
replace(R.id.drawerView, DrawerViewFragment())
}
messageAdapter.addSystemMessage(getString(R.string.main_welcome_message))
messageAdapter.addSystemMessage(getString(R.string.main_thanks_message))
} else {
online = savedInstanceState.getInt(STATE_ONLINE)
savedInstanceState.getParcelableArrayList<Parcelable>(STATE_LIST_DATA)?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:textIsSelectable="true"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
tools:text="Test danmaku. Bala Bala Bala"/>

Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,12 @@
<string name="export_success_dialog_message">你已经成功地将 %s 导出到 %s。</string>
<string name="export_failed_dialog_title">导出失败</string>

<string name="main_welcome_message"><![CDATA[
欢迎使用悬浮字幕。点击左上按钮选择要观看的直播,然后点击连接按钮开始观看弹幕。要了解更多使用方法,
你可以从左侧抽屉菜单查看帮助。
]]></string>
<string name="main_thanks_message"><![CDATA[
特别感谢那些帮助我们翻译 VTubers 发言的大佬们!没有他们的付出,这个应用也将派不上用场。
]]></string>

</resources>
8 changes: 8 additions & 0 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,12 @@
<string name="export_success_dialog_message">你已經成功地將 %s 匯出到 %s。</string>
<string name="export_failed_dialog_title">匯出失敗</string>

<string name="main_welcome_message"><![CDATA[
歡迎使用懸浮字幕。點按左上按鈕選擇要觀看的直播,然後點按連接按鈕開始觀看彈幕。要了解更多使用方法,
你可以從左側抽屜菜單閱讀幫助。
]]></string>
<string name="main_thanks_message"><![CDATA[
特別感謝那些幫助我們翻譯 VTubers 發言的大佬們!沒有他們的付出,這個應用程式也將派不上用場。
]]></string>

</resources>
10 changes: 10 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,14 @@
<string name="export_success_dialog_message">You have exported %s to %s successfully.</string>
<string name="export_failed_dialog_title">Failed to export</string>

<string name="main_welcome_message"><![CDATA[
Welcome to FloatingCaption. Click left-top button to choose streamer to watch and click connect
button to start watching danmaku. To learn more about how to use, you can open help from left
drawer menu.
]]></string>
<string name="main_thanks_message"><![CDATA[
Special thanks to people who helped us translate VTubers\' words! Without them, this app
would be useless.
]]></string>

</resources>

0 comments on commit cef7d22

Please sign in to comment.