안드로이드 개발 질문/답변
(글 수 45,052)
웹 서버에서 이미지 파일을 가져와서 imageView를 사용하여 전체화면에 보여지게는 할 수 있겠는데요
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/back1" >
이 부분! background를 활용해서 웹 서버에서 갖고올 수 는 없나요ㅠㅠ?
꼭 imageView를 사용해서 해야하는 건가요ㅠㅠ?
imageView로 했더니 버튼이 올라가질 않더라구요....
도와주세요ㅠ_ㅠ! background로 깔수있는 방법이용!




LinearLayout에 ID 값을 부여하고 웹서버에서 이미지를 다운 받은 다음에 setBackground메서드를 이용해서 LinearLayout에 배경을 지정하면 될꺼예요