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