I have this TextViews:
((TextView)findViewById(R.id.carmodel)).setText("CarModel: " + getCarModel+"");
((TextView)findViewById(R.id.bikemodel)).setText("BikeModel: " + getBikeModel+"");
Is there a way to make bold just CarModel:
and BikeModel:
?
This is the XML file:
<TextView
android:id="@+id/carmodel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="17sp"
android:textStyle="italic"
android:layout_marginLeft="10dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/bikemodel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textSize="17sp"
android:textStyle="italic"
android:layout_marginLeft="10dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceSmall" />
So the getCarModel
and getBikeModel
will be italic and the CarModel
and BikeModel:
bold.