-
Avoid using nested
<LinearLayout>
s: Using<RelativeLayout>
is usually more efficient and succinct -
Avoid using multiple
<TextView>
s to style text differently: Use 1<TextView>
withSpannableString
s or HTML// Use HTML to style text textView.setText(HTML.fromHTML(string));