2013-02-11 70 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