Actually I have bunch of images and I am passing those images to my custom array adapter to be present in a list view, I am getting a wonderful presentation of images in list view. But what I want is to show one image to be appear in full screen in list at a time. Means I want show my one Row in (100%) full screen activity. I have wasted 2 days for that and still don't get solution.
When I am giving android:layout_height="wrap_content" in Relative layout (id = subparent) then It gets overlapped and not what I want, when I give android:layout_height="430dp" then it looks like what i want. But I cannot do that because I dont know on which device its gonna run?
My XML file is below:
<?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>