avaudagna / ContactsApp

0 stars 0 forks source link

Hardcoded strings in XML #2

Open amouly opened 9 years ago

amouly commented 9 years ago

No need to hardcode the strings in XML files, you can avoid this by using the "tools" namespace. Like an example:

<TextView android:id="@+id/contact_name" android:layout_width="match_parent" android:layout_height="wrap_content" tools:text="John Doe" android:layout_gravity="center_horizontal" />

amouly commented 9 years ago

This produce bad UX for the user when entering the Details section of the app. When loading the section, it's pre-loading default content.