ich mit Layout wie Code in unter xmlIch kann nicht unten zeigt Linearlayout-Ansicht scrollen
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/title" >
</RelativeLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
<RelativeLayout
android:id="@+id/rel2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/button1"
android:layout_width="250dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:background="@drawable/bkg_gold_btn"
android:text="Button 1" />
/*--------------------------------*/
/* there are 12 more Buttons Here */
/*--------------------------------*/
<Button
android:id="@+id/button10"
android:layout_width="250dp"
android:layout_height="50dp"
android:layout_below="@+id/button9"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:layout_marginTop="5dp"
android:background="@drawable/bkg_gold_btn"
android:text="Button 14" />
</RelativeLayout>
</ScrollView>
<LinearLayout
android:id="@+id/add_layer"
android:layout_width="fill_parent"
android:layout_height="50dip"
>
</LinearLayout>
</LinearLayout>
arbeitete Aber wenn ich den Code ausführen kann ich nicht auf Linearlayout unten sehen. bitte hilf mir.
Versuchen Sie, ein Element _inside_ das letzte 'Linear Layout' hinzuzufügen, um zu überprüfen, ob es wirklich angezeigt wird. Sie werden es wahrscheinlich nicht in der UI-Laufzeit sehen können, da es nur ein Layout und kein UI-Element ist. – Ghost
Wie wirst du es sehen, wenn es keine Kinder hat ..? – ngesh