今回は文字列や色、寸法などの定数値リソースについて詳しく見ていきます。 色 「色」に関するリソースはres/values/colors.xml以下に格納します。 ファイル名は任意です。 色リソースはcolors.xmlに以下のように記述します。 <?xml version="1.0" encoding="utf-8"?> <resources> <color name="background">#FFFFFF</color> <color name="foreground">#000000</color> </resources> 色の指定にはいくつかのフォーマットがあります。 #RGB #ARGB #RRGGBB #AARRGGBB RはRed、GはGreen、BはBlueで、AはAlpha(透過度)です。 定義した色リソースはプログラムから以下のように参照できます。 int bgcol
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く