I have a textview and I want to display 0.0 in normal fontSize of the TextView and then the StringResult() in a smaller text size.
If I add "0.0" + it's not working. Why?
public String StringResult(){
String displayLbl = this.getResources().getString(R.string.displayLbl);
TextView myUnitLbl = (TextView)findViewById(R.id.lbl_unit_res);
String myFinalLbl = displayLbl + " " + myUnitLbl.getText() + " ";
return myFinalLbl;
}
public void cmd_rst(View v){
TextView lblText = (TextView) findViewById(R.id.lblresult);
lblText.setText("0.0" + Html.fromHtml("<small>" + StringResult() + "</small>"));
}
lblText.setText(Html.fromHtml("<small>" + StringResult() + "</small>")); //only this works