-1

Been browsing through android developers guide but couldnt seem to find any that will allow me to change background colors, text colors and fontsizes.

Any help towards the right resource will be greatly appreciated.

Surya Prakash Kushawah
  • 3,185
  • 1
  • 22
  • 42
Lawrence
  • 717
  • 1
  • 12
  • 25

1 Answers1

0

If you want to change the ui-elemnts of your application, then you can customize the main.xml

<TextView
  android:id="@+id/text_view2"
  android:text="Font size 25dp or dip (Density-independent-Pixels)"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:textColor="#FF0000"
  android:textSize="25dp"
  />

Code is taken from this link https://android--examples.blogspot.se/2015/01/textview-font-size-in-android.html

Howevver, If you want to update the ui at runtime, then you most send a request to the ui. Check this thread Updating Android UI using threads Both Franco and user634618 have pretty good answers regarding this.

Community
  • 1
  • 1