2013-02-11 28 views
2

我想覆盖的ImageView和画廊像下面的图像如何在图库上叠加imageview?

i want like this

我想这样的..

<RelativeLayout 
      android:layout_width="match_parent" 
      android:layout_height="70dp" > 
<ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content"   
     android:src="@drawable/title_header" /> 

<Gallery 
     android:id="@+id/Gallery" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content"></Gallery> 

</RelativeLayout> 

,但它不是叠加。请帮助我..

回答

1

根据需要请尽量将

<RelativeLayout 
     android:layout_width="match_parent" 
     android:layout_height="70dp" > 

<Gallery 
    android:id="@+id/Gallery" 
    android:layout_width="fill_parent" 
    android:layout_marginTop="10dip" 
    android:layout_height="wrap_content"></Gallery> 

<ImageView 
    android:layout_width="wrap_content" 
    android:layout_alignParentTop="true" 
    android:layout_height="wrap_content"   
    android:src="@drawable/title_header" /> 

</RelativeLayout> 

android:layout_marginTop="10dip"给定值。

+0

谢谢!有用! – bCliks 2013-02-11 11:07:23