Stringリソースからタイトルを取得するように

This commit is contained in:
r-ca 2024-01-20 16:05:55 +09:00
parent 4d5d02c794
commit 457e58264b
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -48,8 +48,8 @@ public class SettingTopFragment extends Fragment {
ArrayList<SettingListItem> settingListItems = new ArrayList<>();
settingListItems.add(
new SettingListItem(
"Display",
"Display settings",
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_display_title),
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_display_description),
ContextCompat.getDrawable(getContext(), one.nem.lacerta.shared.ui.R.drawable.palette_24px),
R.id.action_settingTopFragment_to_settingDisplayPageFragment
)
@ -57,8 +57,8 @@ public class SettingTopFragment extends Fragment {
settingListItems.add(
new SettingListItem(
"Data",
"Data settings",
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_data_title),
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_data_description),
ContextCompat.getDrawable(getContext(), one.nem.lacerta.shared.ui.R.drawable.settings_backup_restore_24px),
R.id.action_settingTopFragment_to_settingDataPageFragment
)
@ -66,8 +66,8 @@ public class SettingTopFragment extends Fragment {
settingListItems.add(
new SettingListItem(
"Scan",
"Scan settings",
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_scan_title),
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_scan_description),
ContextCompat.getDrawable(getContext(), one.nem.lacerta.shared.ui.R.drawable.document_scanner_24px),
R.id.action_settingTopFragment_to_settingScanPageFragment
)
@ -75,8 +75,8 @@ public class SettingTopFragment extends Fragment {
settingListItems.add(
new SettingListItem(
"About",
"About this app",
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_about_title),
getResources().getString(one.nem.lacerta.shared.ui.R.string.setting_top_about_description),
ContextCompat.getDrawable(getContext(), one.nem.lacerta.shared.ui.R.drawable.info_24px),
R.id.action_settingTopFragment_to_settingAboutPageFragment
)