2

私は問題があります:
このxmlレイアウトで:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical">
    <EditText android:id="@+id/nomenota"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"/>
    <EditText android:id="@+id/corponota"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:inputType="textMultiLine"/>
    <TableLayout   
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
        <TableRow >
        <Button android:id="@+id/visualizza_notaOK"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/notaOK"/>
        <Button android:id="@+id/nota_annulla"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/nuovanotaannulla"/>
    </TableRow>
</TableLayout>  

私の活動は次のように表示されます。
ここに画像の説明を入力してください

ご覧のとおり、私のメッセージの本文は大きな編集テキストの中央に配置されており、この結果は望ましくありません。
私が望む結果はこのリンクのようなものです:私が達成したいレイアウトのリンク

誰かが私を助けてくれますか?
前もって感謝します。
マルコ。

4

1 に答える 1

5

このプロパティをedittextで適用しますandroid:gravity="top"

于 2012-04-17T08:59:12.167 に答える