edittext внутри стола Android - PullRequest
       11

edittext внутри стола Android

1 голос
/ 09 февраля 2011

У меня есть текстовое представление и текст редактирования внутри таблицы. Моя проблема в том, что когда я пытаюсь написать много символов в тексте редактирования, тогда я не вижу, что пишу.строка или прокрутка текста редактирования, пока я пишу?

<TableLayout
    android:id="@+id/table"
    android:layout_height="wrap_content" 
    android:layout_width="fill_parent"
    android:paddingTop="30dip"
    android:paddingLeft="10dip"
    android:paddingRight="10dip"
    android:layout_below="@id/banner" >
    <TableRow>
        <TextView
            android:id="@+id/username_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#fff"
            android:textSize="18dip" 
            android:text="Username"
             />
        <EditText
            android:id="@+id/entry1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
    </TableRow>

    <TableRow>
        <TextView
            android:id="@+id/password_label"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textColor="#fff"
            android:textSize="18dip" 
            android:text="Password" />
        <EditText
            android:id="@+id/entry2"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:password="true" />
    </TableRow>     
</TableLayout>

Ответы [ 2 ]

0 голосов
/ 29 июля 2011

Используйте эту помощь для вас.

<TableLayout android:id="@+id/table" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:stretchColumns="1"
    android:layout_below="@+id/banner">
    <TableRow>
        <TextView android:id="@+id/username_label"
            android:layout_width="wrap_content"     android:layout_height="wrap_content"
            android:textColor="#fff" android:textSize="18dip" android:text="Username" />
        <EditText android:id="@+id/entry1" android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
    </TableRow>

    <TableRow>
        <TextView android:id="@+id/password_label"
            android:layout_width="fill_parent" android:layout_height="wrap_content"
            android:textColor="#fff" android:textSize="18dip" android:text="Password" />
        <EditText android:id="@+id/entry2" android:layout_width="fill_parent"
            android:layout_height="wrap_content" android:password="true" />
    </TableRow>
</TableLayout>
0 голосов
/ 09 февраля 2011

Вы пробовали с android:lines / android:maxLines?

...