2011-04-25 めも android programing プログラム中にレイアウトを記述する場合 onCreate()だとgetWidth()とかできないのでonWindowFocusChanged()を使う。