Using xml Syntax Highlighting
- <Button android:id="@+id/btn_update"
- android:text="Update"
- android:textColor="#ffffffff"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/un_focussed_90x31px"/>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
as opposed to a button whose xml is as follows:
Using xml Syntax Highlighting
- <Button android:id="@+id/btn_update"
- android:text="@string/update_label"
- android:textColor="#ffffffff"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/un_focussed_90x31px"/>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
The difference is the "android:text" line. What is the advantage of using one over the other. i.e android:text="Update" ap opposed to using android:text="@string/udpate_label" (where we would have a String resource with the label 'update_label' in the Strings.xml file)
Thanks,
--D



