일단 제가 이미지버튼을 처음 만들어보고 이런 사람은 아닙니당.... ㅠㅠ

 

 

그냥 단순히 작업하는 도중에

 

이미지버튼을 추가하고

 

 

이클립스 graphical layout 으로 봤을때는 버튼이 잘 그려져 있는 상황인데

 

어플만 실행하면 그 버튼이 보이지 않습니다.

 

 

어떤 이유일까요? 처음에는 그래픽레이아웃과 실 화면의 차이때문에 화면 밖으로

 

밀려나간 것이 아닐까 했는데 모든 레이아웃을 지우고 이 버튼만 두어도

 

버튼이 나오지 않습니다. 가지고 있는 png 파일에는 전혀 이상이 없습니다.(다른 액티비티에서 잘 쓰고있는

 

버튼 그대로 사용중인데 이 액티비티에서만 나오지 않고 있습니다.)

 

 

같은 레이아웃에 있는 이미지뷰, 에디트 텍스트 등등 다 잘나오는데 이미지버튼만 안나옵니다

 

허... 미치겠는데 무슨 헛실수를 했는지 도대체 모르겠네요...

 

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:background="@drawable/select">
                   
        <ImageView
        android:layout_width="fill_parent"
        android:layout_height="165dp"
        android:scaleType="fitCenter"
        android:visibility="invisible" />
       
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal">

                    <ImageView
        android:layout_width="105dp"
        android:layout_height="35dp"
        android:scaleType="fitCenter"
        android:visibility="invisible" />
                   
            <EditText
                android:id="@+id/editText1"
                android:layout_width="80dp"
                android:layout_height="35dp"
                android:background="#00000000"
                android:singleLine="true" />
           
                                <ImageView
        android:layout_width="70dp"
        android:layout_height="35dp"
        android:scaleType="fitCenter"
        android:visibility="invisible" />
                               
                                            <EditText
                android:id="@+id/editText2"
                android:layout_width="80dp"
                android:layout_height="35dp"
                android:background="#00000000"
                android:singleLine="true" />
                               
                               

</LinearLayout>

                <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal">
                                           
                    <ImageView
        android:layout_width="105dp"
        android:layout_height="35dp"
        android:visibility="invisible" />
                                           
                    <ImageButton
                    android:id="@+id/btn_he"
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    android:scaleType="fitCenter"
                    android:src="@drawable/he_no"
                    android:background="#00000000" />
               
                                <ImageButton
                    android:id="@+id/btn_she"
                    android:layout_width="40dp"
                    android:layout_height="40dp"
                    android:scaleType="fitCenter"
                    android:src="@drawable/she_yes"
                    android:background="#00000000" />
                   
</LinearLayout>

 

</LinearLayout>

 

레이아웃 파일입니다.

 

linearlayout를 여러개 만들어 가로 세로로 차곡차곡 배치하고 있습니다.

 

투명 이미지뷰를 통해서 간격 조정을 하고 이런식으로 작업을 하는게 편해서 이렇게 하는데..

 

무슨 문제일까요. 마지막 이미지 버튼 2개가 나오지 않습니다...

 

 

왕초보 실수일 것 같아 죄송스럽네용.