07.01.2013 Views

David Defour - Université de Perpignan

David Defour - Université de Perpignan

David Defour - Université de Perpignan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Best Practices<br />

• Provi<strong>de</strong> unlocalized <strong>de</strong>faults for all values<br />

–So if Locale is unexpected, it displays in <strong>de</strong>fault language<br />

• E.g., if English is main language, use res/values, not res/valuesen.<br />

Also, test your app in unsupported Locale.<br />

• Use graphical layout editor for testing<br />

–For layout file, it lets you interactively change language,<br />

screen orientation, display resolution, and more<br />

• Avoid changing layouts based on language<br />

469<br />

jeudi 26 janvier 12<br />

–Might be necessary in some cases (e.g., US English asks for<br />

given name first and family name second, whereas Indian<br />

English asks for them in opposite or<strong>de</strong>r). However, makes for<br />

hard-to-maintain co<strong>de</strong>.<br />

• Consi<strong>de</strong>r putting the logic in Java co<strong>de</strong> instead

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!