TableLayout -> Elemente gehen über den Rand hinaus

T

The_Unknown

Neues Mitglied
0
Hallo,

ich habe folgenden Aufbau in meiner Layout-Datei:

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent" android:weightSum="1">
    <TableLayout android:id="@+id/tableLayout1"
        android:layout_height="wrap_content" android:layout_width="match_parent">
        <TableRow android:id="@+id/tableRow1" android:layout_width="match_parent"
            android:layout_height="wrap_content" android:gravity="center_vertical">
            <ImageView android:id="@+id/imageView1"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:src="@drawable/pic"></ImageView>
            <TextView android:text="Dies ist ein Test 123456789"
                android:layout_height="wrap_content" android:layout_width="wrap_content"
                android:id="@+id/textView1" android:textSize="25sp"
                android:textStyle="bold"></TextView>
        </TableRow>
    </TableLayout>

</LinearLayout>
Leider geht der Text des TextViews, welches sich rechts neben dem ImageView befindet, über den Rand hinaus (sowohl im Designer als auch im Emulator).

Woran liegt das denn? Habe ich etwas falsch gemacht?

Ciao Dennis
 

Ähnliche Themen

L
Antworten
4
Aufrufe
1.316
lonnie9020
L
S
Antworten
4
Aufrufe
4.122
mblaster4711
mblaster4711
L
Antworten
5
Aufrufe
786
swa00
swa00
Zurück
Oben Unten