저는 안드로이드 개발을 처음 접했고 이미지 뷰 2 개를 움직여서 2 개의 버튼이 서로 평행하게 보여줍니다. CLICK HERE TO VIEW MY PROBLEMEclipse 이미지 뷰 이동하기
업데이트 코드 :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/TopTwoButtons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/background_meduim"
android:gravity="center_horizontal" >
<ImageView
android:id="@+id/ListButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="39dp"
android:layout_marginTop="130dp"
android:src="@drawable/list_button_medium" />
<ImageView
android:id="@+id/SearchButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignTop="@+id/ListButton"
android:layout_marginLeft="20dp"
android:src="@drawable/search_button_medium" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/BottomTwoButtons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/TopTwoButtons"
android:gravity="center_horizontal" >
<ImageView
android:id="@+id/InfoButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp"
android:src="@drawable/info_button_medium" />
<ImageView
android:id="@+id/PopularButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:layout_marginRight="30dp"
android:src="@drawable/popular_button_medium" >
</RelativeLayout>
여기 내 코드는 이제 여기가 지금까지 어떻게 생겼는지의 스크린 샷이다. 두 번째 두 번째 버튼이있는 두 번째 상대 레이아웃에서 29 번째 줄에 오류가 표시됩니다. 감사합니다. 그리고 바보가되어서 미안 해요. 저는이 사이트에서 일하는 것에 익숙해졌습니다.
확인. 어떻게 이미지를 표시하고 싶습니까 ?? –
맨 위 줄에 2 개, 밑에 2 개가 있도록 버튼을 배치하고 싶습니다. – Jack