2011-07-14 9 views

答えて

2
<?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:id="@+id/activityRootContainer> 

</FrameLayout> 

をこれを行うに取り掛かる:

findViewById(R.id.activityRootContainer).setBackgroundDrawable(getResources().getDrawable(R.drawable.backgroundImage)) 

または

findViewById(R.id.activityRootContainer).setBackgroundColor(Color.RED) 

HTH?

+0

乾杯。私はLinearLayoutと同様の方法で試してみる予定でしたが、これはきれいに見えます。 – Glitch

関連する問題