Android bold text in xml not working

goodmanmorx

New Member
I am making an application, and in that application I want to make some text which is partly bold and partly normal like this:Cake Try this delicious cake made with carrots. In my main.xml, I have entered this:\[code\]<LinearLayout android:id="@+id/itemone" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="20" android:padding="3dp" > <ImageView android:layout_width="110dp" android:layout_height="85dp" android:src="http://stackoverflow.com/questions/11334129/@drawable/cake" /> <TextView android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/cake" android:textAppearance="?android:attr/textAppearanceSmall" /> </LinearLayout>\[/code\]And in my strings.xml I have entered this:\[code\]<string name="cake"><b>Cake</b>\n Try this delicious cake made with carrots.</string>\[/code\]The result is not what I except. All I get is the word "Cake", and its not bold.
 
Back
Top