안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요.
<LinearLayout
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:background="@drawable/이미지 리소스"
android:gravity="center"
android:orientation="vertical" >
......................................................
</LinearLayout>
layout = (LinearLayout)findViewById(R.id.layout);
구현은 이렇습니다.
여기서 layout 의 백그라운드 리소스를 가져오고 싶습니다.
방법이 있나요?
좋은하루 되시구요 답변 부탁 드리겠습니다.
감사합니다.




Drawable drawable = rootLayout.getBackground();