背景の色を変える。
背景色の変更の方法です。
初期設定だと画面が真っ黒です。でもなんだか嫌だったので変えてみます。
main.xmlにカラーコードで指定します。
「android:background="カラーコード"」です。
白だと分かりにくいので、「#ff6699」でピンクにしてみます。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#ff6699">
これでピンクになりました。