app / src / main / res / values / strings.xml
app / src / main / res / values-es / strings.xml
app / src / main / res / values-fr / strings.xml
ISO 639-1
res/values/strings.xml
:<?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello!</string> </resources>
This layout XML applies a string to a View:
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" />
This application code retrieves a string:
String string = getString
(R.string.hello);
Hiç yorum yok:
Yorum Gönder