FrameLayout only shows one child at a time.
You probably meant your top-level layout to be a LinearLayout (judging
by the orientation attribute).
-- Kostya
03.03.2011 12:54, Patrick пишет:
I tried your suggestions but still no result:
The header layout is set to android:layout_weight="0" and the list to
android:layout_weight="1". In addition I exchanged the
android:layout_height="fill_parent" of the list to
android:layout_height="wrap_content". The new XML looks like this, but
still doesn't work...
Do you have any other idea what could be wrong?
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="vertical" >
<LinearLayout android:layout_width="fill_parent" android:layout_weight="0"
android:layout_height="wrap_content" android:orientation="horizontal"
style="@android:style/ButtonBar">
<ImageView android:src="@drawable/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView android:text="@string/titleheader"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<ListView android:visibility="visible" android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1" />
</LinearLayout>
<LinearLayout android:id="@+id/footer" android:layout_weight="0"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:orientation="horizontal" android:layout_gravity="bottom|center"
android:layout_alignParentBottom="true" style="@android:style/ButtonBar">
<ImageButton android:id="@+id/loacreation.previousButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:src="@drawable/buttonarrowleft" />
<ImageButton android:id="@+id/loacreation.nextButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:src="@drawable/buttonarrowright" />
</LinearLayout>
</FrameLayout>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en