Layout in Layout

M

mani2111

Neues Mitglied
0
Hallo Leute,

ich hab ein Problem, ich möchte in "RelativLayout" 3 Sublayouts einfügen.
Das erste ist ein Linear Layout und soll Quasi die Kopfzeile sein mit Titel und ein Button zum Upload eines Fotos enthalten. Danach folgt das Layout wo der eigentlich Inhalt enthalten ist eine Scrollview. Zum Schluss noch noch ein Linear Layout welches eine EditText View enthält und ein Button.
Jetzt mein Prolem:Wenn die ScrollView voll wird kann man wunderbar hoch und runter scrollen jedoch überlagert die ScrollView zum ersten den Kopfzeile, sowie das LinearLayout am Ende. Da ich aus der .Net Welt komme wollte ich die Kopfzeile am Oberen Rand docken, die Fußlayout unten andocken, und das mittler Dock-Fill aber wie gesagt irgendwas stimmt da nicht.
Würde mich über eure Hilfe freuen.

Layout:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="wrap_content" >
<LinearLayout
android:id="@+id/llPhoto"
android:layout_alignParentTop="true"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_width="fill_parent">

<TextView
android:id="@+id/tvChat"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="0.23"
android:text="Chat"
android:textSize="50px" />


<Button
android:id="@+id/cmdPhoto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.02"
android:text="Foto" />

</LinearLayout>

<ScrollView
android:id="@+id/svContent"
android:layout_height="wrap_content"
android:layout_width="wrap_content" >


<LinearLayout
android:id="@+id/llContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >

</LinearLayout>

</ScrollView>


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

<EditText
android:id="@+id/tbxMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.85"
android:ems="10" />
<Button
android:id="@+id/cmdSend"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.00"
android:text="Senden" />

</LinearLayout>
</RelativeLayout>
 
Hi, ich weiß nicht ob dir das hilft aber versuchs doch mal mit "include other layout" (findest du im layout editor , kannsts ja googlen ;) )

Hoffe das stichwort hilft dir, mfg keinbrain
 

Ähnliche Themen

L
Antworten
4
Aufrufe
1.332
lonnie9020
L
A
Antworten
1
Aufrufe
879
koje71
koje71
D
Antworten
23
Aufrufe
2.513
Data2006
D
Zurück
Oben Unten