2
我有一个问题:
与该XML布局:的EditText与多线的Android API级别8
<?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>
我的活动表现出这样的:
,你可以看到,我的消息的主体集中在一个大的edittext,我不想要这个结果。
我想要的结果是这样的链接:link of layout that i want to achieve
CAn有人帮助我吗?
在此先感谢。
Marco。
使用android:gravity =“top”。 – 2012-04-17 08:49:57
http://stackoverflow.com/questions/2446544/android-multi-line-edittext-text-area – 5hssba 2012-04-17 08:54:27
伟大的Chirag!感谢所有人,因为我已经解决了注意!真的非常感谢... – 2012-04-17 08:57:07