Modification of colour and levelling of central text
For the inclusion of the text on Activity, use the element of TextView and want to do so using html as follows:
TextView text1 = (TextView) findViewById(R.id.text); text1.setText(Html.fromHtml("Какой-то текст");
The question is how this text should be levelled along the breadth and changed its colour. I did, but there was no result:
fromHtml("<p align=\"center\">Какой-то текст" </p>");
What are the options for solving the problem?
Your element textView is described in layout your Activity. In order to equalize the width, set him an attribute android:gravity="startжаend.