TextViewは、文字列を表示するためのビュークラス・・・。
これまで表示してきたTextViewに色を付けてみる・・・。
textColorで文字列の色を16進数のRGBで指定・・・。text1には"#FF0000"(赤)を指定する・・・。
text2には"#00FF00"(緑)を指定・・・。
text3には"#0000FF"(青)を指定・・・。
今度はbackgroundで背景の色を16進数のRGBで指定・・・。text1には"#FF0000"(赤)・・・。
text2は"#00FF00"(緑)・・・。
text3は"#0000FF"(青)・・・。
上の3つは文字列の色、下の3つは背景がそれぞれ3色になっている・・・。
Sample/MainActivity.java at master · bg1bgst333/Sample · GitHub
Sample/activity_main.xml at master · bg1bgst333/Sample · GitHub
Sample/strings.xml at master · bg1bgst333/Sample · GitHub
Sample/AndroidManifest.xml at master · bg1bgst333/Sample · GitHub