안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_width="match_parent" android:orientation="vertical"> <RelativeLayout android:layout_height="wrap_content" android:id="@+id/relativeLayout1" android:layout_width="match_parent"> <ImageButton android:src="@drawable/btn1" android:layout_alignParentLeft="true" android:id="@+id/nav_bt1" android:layout_width="120px" android:layout_height="50dip"></ImageButton> <ImageButton android:id="@+id/nav_bt2" android:src="@drawable/btn2" android:layout_toRightOf="@+id/nav_bt1" android:layout_alignTop="@+id/nav_bt1" android:layout_alignBottom="@+id/nav_bt1" android:layout_width="120px" android:layout_height="50dip"></ImageButton> <ImageButton android:id="@+id/nav_bt3" android:src="@drawable/btn3" android:layout_toRightOf="@+id/nav_bt2" android:layout_alignTop="@+id/nav_bt2" android:layout_alignBottom="@+id/nav_bt2" android:layout_width="120px" android:layout_height="50dip"></ImageButton> <ImageButton android:id="@+id/nav_bt4" android:layout_width="120px" android:src="@drawable/btn4" android:layout_toRightOf="@+id/nav_bt3" android:layout_alignTop="@+id/nav_bt3" android:layout_alignBottom="@+id/nav_bt3" android:layout_height="50dip"></ImageButton> </RelativeLayout> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/view_map"> <com.company.map.navigation android:id="@+id/imageview" android:layout_height="fill_parent" android:layout_width="match_parent" /> </RelativeLayout> </ScrollView> </LinearLayout>
그림이 보여야 하는데 그림이 출력되지않고 검은화면이네요.. 스크롤뷰 안에 하나의 레이아웃만 넣었는데...
스크롤뷰를 주석처리 해도 잘뜨고 내용을 바꿔서 테이블을 넣고 줄을 추가하면 스크롤도, 테이블도 잘보입니다.
그러나 imageview는 똑같이 출력되지않네요;
네이버에 검색해보니 얼핏 크기를 제대로 받지못한다는 이야기가있던데 상세히 써있지는 않던데 어떻게 해결해야할까요?
ScrollView 싸이즈가 지금 full로 잡아 먹고 있음.
android:layout_weight="1" 이거 추가 요망.