2012-02-14 8 views
0

こんにちは、私は本当に私のアンドロイドアプリのための素敵なレイアウトを得るために苦労しています。 私はscrollview iveを囲むヘッダーとフッターを使ってビューを作成しようとしましたが、多くの状況を試しましたが、私のスクロールビューからすべてのボトムバーが消えてしまいました。事前にAndroidレイアウトtopbar> scrollview>広告バー

Mockup

ありがとう:物事をより明確にIVEを作るために

があることをそれのようにi'dd何の簡単な画像を作りましたよ!

答えて

2

魔法のように、この

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">  

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

      <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"  
      android:text="TopBar"/> 
    </RelativeLayout> 

    <RelativeLayout 
      android:id="@+id/bottomlayout" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentBottom="true"> 

      <TextView 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"  
      android:text="Bottom Bar"/> 
    </RelativeLayout> 

    <ScrollView 
      android:id="@+id/scrolllayout" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_below="@id/toplayout" 
      android:layout_above="@id/bottomlayout"> 
     <RelativeLayout 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal"> 
     <ImageView 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:background="@drawable/icon01" 
       android:id="@+id/lin1"/> 
     </RelativeLayout> 
    </ScrollView> 


</RelativeLayout> 
+0

素晴らしい作品をお試しください – sn0ep

関連する問題