Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Values Depending on Language & Screen Size

Please excuse my bad English, I'm French!

In my Android project, I want to have different values for both languages (es and fr) AND screen sizes. I can't find anything about that. Can someone help me please?

Thanks!

like image 573
Florian Mac Langlade Avatar asked Jun 25 '26 04:06

Florian Mac Langlade


1 Answers

Android allows you to provide alternate resources depending on the configuration of the device the app is running on. In your case, you will need to provide:

  1. Different String resources translated for the languages supported.
  2. Different layout resources optimized for the screen sizes supported.
  3. Different density image resources for the screen densities supported.

The Android docs cover these topics quite well:

  • How to handle providing these alternate resources
  • How to access and use resources
  • How to localize your application

These docs should give you an in depth guide on what you need to do to properly structure your app.

like image 192
Steven Byle Avatar answered Jun 28 '26 09:06

Steven Byle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!