1

how could set the layout parameters of the imageView in order to get something like this?enter image description here

Thanks!!

Community
  • 1
  • 1
Gonzalo Solera
  • 1,182
  • 12
  • 26

1 Answers1

2

I have prepared a Simple Hack Solution. Make a dump View and Assign your View Top to it.

<View
    android:id="@+id/view1"
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true" />

<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignTop="@id/view1"
    android:layout_centerHorizontal="true"
    android:src="@drawable/ic_launcher" />

Hope this could help you...Any Query are Welcome :)

Nitesh Tiwari
  • 4,742
  • 3
  • 28
  • 46