1
我有這個xml佈局在這裏,問題是我可能有超過15個editTexts,現在,我試圖添加一個但它說應用程序停止,也許我把它錯誤的方式.. 。 我只需要滾動屏幕,並看到所有edittexts .. 這裏是xml文件在android應用程序問題滾動編輯文本
<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/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Emer"
/>
<EditText
android:id="@+id/msgMbiemer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Mbiemer"
/>
<EditText
android:id="@+id/msgTelefon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Nr. Telefoni"
/>
<EditText
android:id="@+id/msgAdresa"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Adresa"
/>
<EditText
android:id="@+id/msgOra"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Ora e Krijimit"
/>
<EditText
android:id="@+id/msgPer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Per ke?"
/>
<EditText
android:id="@+id/msgDyqan"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Dyqan"
/>
<EditText
android:id="@+id/msgStatusi"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Statusi"
/>
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleLarge"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Submit" />
</LinearLayout>
只要把這個'LinearLayout'放在[scrollview]裏面(http://stackoverflow.com/questions/6674341/how-to-use-scrollview-in-android)。 – Gunaseelan 2013-05-14 13:33:26
你能幫我鱈魚ei嗎? 我試過,但它仍然說應用程序已停止... – alandr 2013-05-14 13:38:01