Skip to content

Commit 641ce21

Browse files
Merge pull request #25 from D4rK7355608/codex/update-daily_tips-to-string-resources
Refactor daily tips to use string resources
2 parents 130126b + a2b4c09 commit 641ce21

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

app/src/main/res/values/arrays.xml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,24 @@
8383
<item>about</item>
8484
</string-array>
8585
<string-array name="daily_tips">
86-
<item>Use ConstraintLayout to create responsive UIs.</item>
87-
<item>Leverage ViewBinding for safer UI code.</item>
88-
<item>Implement RecyclerView for smooth scrolling lists.</item>
89-
<item>Use Material Design 3 components for a modern look.</item>
90-
<item>Profile your app regularly to track performance.</item>
91-
<item>Keep layouts organized by extracting reusable components.</item>
92-
<item>Use string resources for all text to simplify localization.</item>
93-
<item>Optimize images with WebP to reduce APK size.</item>
94-
<item>Enable ProGuard to shrink and obfuscate release builds.</item>
95-
<item>Prefer Compose for new UI if targeting modern devices.</item>
96-
<item>Take advantage of LiveData and ViewModel for reactive UIs.</item>
97-
<item>Use WorkManager for reliable background tasks.</item>
98-
<item>Utilize GitHub Actions for automated build checks.</item>
99-
<item>Test your app on different screen sizes with the emulator.</item>
100-
<item>Keep dependencies updated for the latest features and fixes.</item>
86+
<item>@string/daily_tip_constraintlayout</item>
87+
<item>@string/daily_tip_viewbinding</item>
88+
<item>@string/daily_tip_recyclerview</item>
89+
<item>@string/daily_tip_material_design3</item>
90+
<item>@string/daily_tip_profile_app</item>
91+
<item>@string/daily_tip_extract_components</item>
92+
<item>@string/daily_tip_use_string_resources</item>
93+
<item>@string/daily_tip_optimize_webp</item>
94+
<item>@string/daily_tip_enable_proguard</item>
95+
<item>@string/daily_tip_prefer_compose</item>
96+
<item>@string/daily_tip_livedata_viewmodel</item>
97+
<item>@string/daily_tip_workmanager</item>
98+
<item>@string/daily_tip_github_actions</item>
99+
<item>@string/daily_tip_emulator_screen_sizes</item>
100+
<item>@string/daily_tip_update_dependencies</item>
101+
<item>@string/daily_tip_kotlin_coroutines</item>
102+
<item>@string/daily_tip_hilt</item>
103+
<item>@string/daily_tip_unit_tests</item>
104+
<item>@string/daily_tip_mvvm</item>
101105
</string-array>
102106
</resources>

app/src/main/res/values/strings.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,25 @@
409409
<string name="summary_consent_ad_storage">Permits storing ad data on your device.</string>
410410
<string name="summary_consent_ad_user_data">Allows sharing user data for ads.</string>
411411
<string name="summary_consent_ad_personalization">Enables personalized ad recommendations.</string>
412+
<string name="daily_tip_constraintlayout">Use ConstraintLayout to create responsive UIs.</string>
413+
<string name="daily_tip_viewbinding">Leverage ViewBinding for safer UI code.</string>
414+
<string name="daily_tip_recyclerview">Implement RecyclerView for smooth scrolling lists.</string>
415+
<string name="daily_tip_material_design3">Use Material Design 3 components for a modern look.</string>
416+
<string name="daily_tip_profile_app">Profile your app regularly to track performance.</string>
417+
<string name="daily_tip_extract_components">Keep layouts organized by extracting reusable components.</string>
418+
<string name="daily_tip_use_string_resources">Use string resources for all text to simplify localization.</string>
419+
<string name="daily_tip_optimize_webp">Optimize images with WebP to reduce APK size.</string>
420+
<string name="daily_tip_enable_proguard">Enable ProGuard to shrink and obfuscate release builds.</string>
421+
<string name="daily_tip_prefer_compose">Prefer Compose for new UI if targeting modern devices.</string>
422+
<string name="daily_tip_livedata_viewmodel">Take advantage of LiveData and ViewModel for reactive UIs.</string>
423+
<string name="daily_tip_workmanager">Use WorkManager for reliable background tasks.</string>
424+
<string name="daily_tip_github_actions">Utilize GitHub Actions for automated build checks.</string>
425+
<string name="daily_tip_emulator_screen_sizes">Test your app on different screen sizes with the emulator.</string>
426+
<string name="daily_tip_update_dependencies">Keep dependencies updated for the latest features and fixes.</string>
427+
<string name="daily_tip_kotlin_coroutines">Leverage Kotlin Coroutines for asynchronous operations.</string>
428+
<string name="daily_tip_hilt">Integrate Hilt for dependency injection.</string>
429+
<string name="daily_tip_unit_tests">Write unit tests with JUnit and Espresso.</string>
430+
<string name="daily_tip_mvvm">Follow the MVVM architecture for maintainable code.</string>
412431
<string name="tip_of_the_day">Tip of the Day</string>
413432
<string name="other_apps_title">More apps by the developer</string>
414433
</resources>

0 commit comments

Comments
 (0)