실제로 나는 이미지 묶음을 가지고 있으며 목록보기에 표시되도록 내 이미지를 내 사용자 지정 배열 어댑터에 전달하고 있습니다. 목록보기에서 이미지를 멋지게 보여줍니다. 하지만 내가 원하는 것은 한 번에 하나의 이미지가 전체 화면으로 목록에 표시되도록하는 것입니다. (100 %) 행 전체 화면 활동을 표시하고 싶습니다. 나는 2 일 동안 그것을 낭비했고, 여전히 해결책을 얻지 못한다.목록 항목을 단일 액티비티로 전체 화면으로 설정하는 방법은 무엇입니까?
Relative 레이아웃 (id = subparent)에서 android : layout_height = "wrap_content"를 제공 할 때 android : layout_height = "430dp"를 주면 겹쳐서 내가 원하는 것을 얻지 못할 것입니다. 필요. 하지만 그 장치를 실행할 장치를 모르기 때문에 그렇게 할 수는 없습니까?
내 XML 파일은 다음과 같습니다 :
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:id="@+id/subparent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:src="@drawable/img2" />
<FrameLayout
android:id="@+id/flbotom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bottom_nav"
android:layout_alignParentBottom="true">
</FrameLayout>
</RelativeLayout>
</RelativeLayout>
"fill_parent"를 사용해 보셨습니까? – KunalK
예 fill_parent, wrap_content, match_parent를 모두 사용했지만 중복 된 프리젠 테이션을 제공합니다. –
루트 'RelativeLayout'에 정적 높이를주고 자식 요소에'match_parent'를 설정해야합니다. 그렇지 않으면 전체 화면에서 단일 행을 갖기가 어렵습니다. – Naveen