2012-03-25 2 views

Antwort

2

Sie haben nicht bieten die Layout-Datei ist so hier ein kleines Beispiel dafür, wie dieses Problem zu vermeiden:

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

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

     <Button 
      android:id="@+id/button1" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="Button1" /> 

     <Button 
      android:id="@+id/button2" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="Button2" /> 
    </LinearLayout> 

    <ScrollView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_above="@id/btn_bar" 
     android:layout_alignParentTop="true" > 

     <TextView 
      android:id="@+id/textView1" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="TextView" /> 
    </ScrollView> 


</RelativeLayout> 
+0

i ein Elternteil hatte Scroll so stattdessen habe ich die Eltern eine relativelayout anzeigen und eine Scrollview setzen in mit meinem Hauptinhalt und unter dem Scrollview war eine weitere relative Ansicht mit den Buttons - danke! – tipu