Text soll immer an gleicher Position sein

K

Knoxxx

Fortgeschrittenes Mitglied
0
Hallo,

ich will in meiner App auf jeder Seite unterschiedliche Wörter an der gleichen Stelle haben. Aber wenn ich mir aus der XML Datei den Code für die Maße rauskopiere und in den XML-Code der nächsten Seite kopiere, ist das Wort nicht an genau der gleichen Stelle. Weiß jmd Rat ?

VG
Knoxxx
 
Ohne den Code zu sehen, ist das schwer zu sagen..

Bezieht sich dieser TextView vielleicht auf ein anderes Element? Denn wenn das in der anderen XML nicht vorhanden ist oder eine andere ID hat, dann kommt es zu solchen Fehlern..
 
Hier ist mein Code. Sind eigentlich beide identisch. Trotzdem stehen die beiden Worte "Eclipse" und "Android" nicht an der gleichen Stelle, sondern etwas verrutscht. Ich benutze RelativeLayout.
Code:
<TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="70dp"
        android:layout_marginLeft="28dp"
        android:layout_marginTop="50dp"
        android:text="Eclipse"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textSize="70dp" />

<TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="70dp"
        android:layout_marginLeft="28dp"
        android:layout_marginTop="50dp"
        android:text="Android"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textSize="70dp" />
erli2909 schrieb:
Bezieht sich dieser TextView vielleicht auf ein anderes Element?
Du meinst von den Maßen her?
 
Zuletzt bearbeitet:
Ich bin mir nicht sicher was das relativelayout angeht und wo standardmäßig der Fixpunkt für neue Elemente ist.

Aber es ist möglich, dass der marginLeft beim 2. TextView von der Position des ersten berechnet wird und das 2 Element dann am ende 2x28dp Marginleft hat?
 
Das kommt dem schon näher, wenn ich für das zweite Textview
android:layout_marginLeft
="56dp" eingebe. Aber trotzdem ist es noch immer nicht an der gleichen Stelle, sondern etwas nach oben rechts verrutscht. Das sieht iwie blöd aus, wenn man die Seiten wechselt.

Aber irgendetwas muss ich falsch machen. Denn wenn ich beispielsweise auf beiden Seiten einen Button einfüge und sie über "Center Vertically" und "Center Horizontally" zentriere, dann sind sie wirklich beide an der gleichen Stelle. Doch die Maße zeigen dann etwas andere Werte an. Das ist doch unlogisch.

Code:
[/COLOR]
 [COLOR=black]<[SIZE=2][SIZE=2]Button
[/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:id[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"@+id/"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_width[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"wrap_content"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_height[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"wrap_content"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_centerInParent[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"true"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_marginLeft[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"24dp"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_marginTop[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"131dp"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:text[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"Button"[/I][/SIZE][/SIZE][/COLOR][COLOR=black][SIZE=2] [/SIZE][SIZE=2][SIZE=2]/>[/SIZE][/SIZE][/COLOR]
 [COLOR=black][/COLOR][SIZE=2][SIZE=2] 
 [COLOR=black]<[/COLOR][/SIZE][/SIZE][SIZE=2][SIZE=2][COLOR=black]Button[/COLOR]
[/SIZE][/SIZE][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:id[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"@+id/button1"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_width[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"wrap_content"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_height[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"wrap_content"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_centerInParent[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"true"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_marginLeft[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"21dp"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][I][SIZE=2][SIZE=2][/I][/SIZE][/SIZE][COLOR=black][SIZE=2][SIZE=2]android:layout_marginTop[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"12[/SIZE][/SIZE][/I][I][SIZE=2][SIZE=2]6dp"
[/I][/SIZE][/SIZE][/COLOR][SIZE=2] [/SIZE][COLOR=black][SIZE=2][SIZE=2]android:text[/SIZE][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][SIZE=2]"Button"[/I][/SIZE][/SIZE][/COLOR][COLOR=black][SIZE=2] [/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>
[/COLOR][/SIZE][/COLOR][/SIZE]
 
Zuletzt bearbeitet:
Hast du noch was anderes in dem RelativeLayout?`
Was du nämlich grade machst sind zwei TextViews direkt übereinander zu setzte, so dass man nicht mal ein einziges Lesen kann. Ist das überhaupt Sinn deiner Übung? :o

Gruß

€dit: Btw. gibst du beiden die ID textView1 ...

€dit2:
Aber es ist möglich, dass der marginLeft beim 2. TextView von der Position des ersten berechnet wird und das 2 Element dann am ende 2x28dp Marginleft hat?
Nein, dem ist nicht so! Wenn du kein layout_below, layout_toRightOf ect einfügst, dann sind zwei Views immer direkt übereinander. Sollten sie die selben maße haben. Also wird das erste quasi vom zweiten überdeckt...

Gruß² :D

€dit3:
Screenshots wären mal nicht schlecht...
 
Zuletzt bearbeitet:
Bei den 2 Beispielen ist kein Fehler drin (bis auf die selbe ID, gibt dabei aber nur ein Warning).

Poste doch mal die gesamte XML und nicht nur die 2 Elemente.
 
Oder sind die beiden TextViews gar nicht im gleichen layout?
Du schreibst ja von 2 verschiedenen "Seiten".

hast du also 2 Layouts wo jeweils eine TextView drin ist?
 
Ganz genau. Ich habe zwei Seiten/Layouts und die Wörter und Buttons sollen auf beiden Seite an der gleichen Stelle sein. Mit den Wörtern habe ich das jetzt durch Verschieben per Hand hinbekommen. Nicht so die wahre Lösung. Trotzdem wundert es mich, dass sie unterschiedliche Margin-Top-Werte haben. Der Button "Lösung" ließ sich problemlos über "Center Vertically" und "Center Horizontally" zentriert einstellen, so dass er auf beiden Seite an der gleichen Stelle ist (genau in der Mitte). Doch der Button "Weiter" soll rechts unten positioniert werden und ist trotz gleicher Werte im xml Code nicht an der gleichen Stelle !? Was mache ich falsch?

Das ist der Code der ersten Seite/Layout:
Code:
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
  
    [LEFT]<[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]RelativeLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]xmlns:android[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"http://schemas.android.com/apk/res/android"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]xmlns:tools[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"http://schemas.android.com/tools"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"match_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"match_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@dimen/activity_vertical_margin"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingLeft[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@dimen/activity_horizontal_margin"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingRight[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@dimen/activity_horizontal_margin"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:paddingTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@dimen/activity_vertical_margin"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]tools:context[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]".MainActivity"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TextView[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/Text2"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerHorizontal[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"50dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Eclipse"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][/LEFT]
[U][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textSize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"70dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]Button[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/button1"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerHorizontal[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerVertical[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Lösung"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]Button[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/button2"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentRight[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"23dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginRight[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"20dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Weiter"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]RelativeLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>
[/COLOR][/SIZE][/COLOR][/SIZE]


Und das ist der Code der zweiten Seite/Layout:
Code:
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
      [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080] [LEFT]<?[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]xml[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]version[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]=[/COLOR][/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"1.0"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]encoding[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]=[/COLOR][/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"utf-8"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]?>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
      [LEFT]<[/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]RelativeLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]xmlns:android[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000]=[/COLOR][/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"http://schemas.android.com/apk/res/android"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"match_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"match_parent"[/COLOR][/SIZE][/COLOR][/SIZE][/I][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]TextView[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/Text2"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerHorizontal[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginTop[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"64dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Android"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][/LEFT]
[U][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:textSize[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"70dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]Button[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/button1"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerHorizontal[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_centerVertical[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Lösung"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]<[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]Button[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]
[/COLOR][/SIZE][/COLOR][/SIZE] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:id[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"@+id/button2"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_width[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_height[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"wrap_content"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_alignParentRight[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"true"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginBottom[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"23dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:layout_marginRight[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"20dp"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/LEFT]
[I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
[/COLOR][/SIZE][/COLOR][/SIZE][/I] [LEFT][U][SIZE=2][COLOR=#7f007f][SIZE=2][COLOR=#7f007f]android:text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]=[/SIZE][I][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"Weiter"[/COLOR][/SIZE][/COLOR][/SIZE][/I][/U][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]/>[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]</[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f7f][SIZE=2][COLOR=#3f7f7f]RelativeLayout[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008080][SIZE=2][COLOR=#008080]>
[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[/COLOR][/SIZE][/COLOR][/SIZE]

 
Zuletzt bearbeitet:
Seite eins hat im relativeLayout paddings eingetragen.

Wenn da paddings eingetragen sind wird erst ab dem padding gemessen..
Wenn das padding left beispielsweise 10 dp beträgt der margin von deinem Textfeld auch 10dp, dann landest du absolut gesehen bei 20 dp linken rand entfernt.

Also entweder die Paddings entfernen oder in beiden Layouts die gleichen benutzen.

Aber das sieht man doch, dass die RelativeLayouts schon NICHT gleich sind.
 
ah, perfekt, Danke! Sorry, bin Anfänger ;)

Viele Grüße
Knoxxx
 
Das waren wir alle mal, trotzdem frage ich mich wie das nicht auffallen kann ;)
Ich wäre ja hingegangen und hätte geguckt was sich unterscheidet und dann hätten die eigenschaften auffallen müssen meiner Meinung nach. :)
 

Ähnliche Themen

H
Antworten
2
Aufrufe
1.311
Hcman
H
FabianDev
Antworten
5
Aufrufe
561
swa00
swa00
H
Antworten
4
Aufrufe
611
HTCUserRay
H
Zurück
Oben Unten