Textview in TableRow in TableLayout - no fill_parent

Chaoz

Chaoz

Fortgeschrittenes Mitglied
13
kurzum....
Meine textview die in einer Tablerow liegt, welche teil eines tablelayouts ist (toller satz xD ) hat trotz des fill_parent nicht die maximale breite....
mein jetztiger workarround mit minWidth ist keineswegs ne lösung, darum brauch ich mal eure hilfe ^^
Ansonsten scheint es so, dass die Table und die TableRow sich maximal ausbreiten würden, nur der editText nicht.


Code:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content" android:id="@+id/DialogTable" android:layout_width="[B]fill_parent[/B]">

    <TableRow android:id="@+id/NameRow" android:layout_width="fill_parent" android:layout_height="[B]fill_parent[/B]">
        <TextView android:id="@+id/NameLabel" android:text="@string/Region"
            android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="10px"/>
        <EditText android:id="@+id/NameText" android:maxLength="50"
            android:layout_width="[B]fill_parent[/B]" android:minWidth="200px"/>
    </TableRow>
</TableLayout>


Gruß
chaoz
 
du kannst dem tablelayout sagen, welche spalte gestreckt werden soll

wenn du ein android:strechColumn="1" machst, sollte er den editText ganz auffüllen
 
  • Danke
Reaktionen: Chaoz
Cool, klappt super, danke... :D
 

Ähnliche Themen

D
Antworten
23
Aufrufe
2.546
Data2006
D
OnkelLon
Antworten
13
Aufrufe
1.984
OnkelLon
OnkelLon
S
Antworten
9
Aufrufe
1.209
swa00
swa00
Zurück
Oben Unten