Skip to main content

Posts

Post

  Lesson 1.4: How to change a color of text and background in TextView? By  Android Teacher  on July 4th, 2013  in  Getting started ,  TextView   tags:  #RRGGBB ,  android:background ,  android:textColor ,  android:textColorHighlight ,  android:textColorHint ,  android:textColorLink ,  Color class ,  colors.xml ,  getColor ,  getCurrentHintTextColor ,  getCurrentTextColor ,  getHighlightColor ,  getTextColors ,  setBackgroundColor ,  setHighlightColor ,  setHintTextColor ,  setLinkTextColor ,  setTextColor ,  TextView From the previous lesson we know how to display a text on Android device’s screens both using XML layout files and Java code. Now it’s time to format that text. We start with font and background colors, but beside a standard text color there are also other options, like links, highlight and hint colors. Moreover we would check current color...

Latest Posts