2016-09-10 9 views
0

私はアンドロイドアプリケーションを開発する必要があります これは、複数のフォームを入力して保存するためにすべてのフォームにボタンを送信します。 このフォームを一緒に接続する方法はありますか?おかげさまで 複数のフォームをアンドロイドアプリに1つボタンで送信しますか?

[編集] 一緒に接続すると、1回のクリックですべてを取得できます。一緒に接続することにより

+0

あなたは何を意味するのですか?あなたはそれぞれの結果を得たいですか? –

+0

@TiagoOliveiraはい私は1つのボタンを使ってそれぞれの結果を得る必要があります。 – Tefa

答えて

0
<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/container" 
android:orientation="vertical" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
> 

<ScrollView 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"> 

<LinearLayout 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <EditText 
     android:hint="First Name" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/editTextFisrtName"/> 

    <EditText 
     android:id="@+id/editTextLastName" 
     android:hint="Last Name" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" /> 


    <Button 
     android:id="@+id/submitButton" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:text="submit"/> 
    </LinearLayout> 
</ScrollView> 

+0

私はあなたの言葉の選択が間違っていたと思います。一つのフォームに複数のテキストがあり、XMLファイルはあなたのアプリケーションの1つのフォームですが、私はそのようなものを複数持っているはずです – Tefa

+0

あなたの問題はフォームを構築するのではなく、複数のフォームを持つことですか?ビューページャーまたは複数のフラグメントを使用することができますか?また、スクロールビューを使用して、 –

+0

はい、私はあなたが今私を理解していると思う、私はデザインがどのように見えるかに問題がないので、あなたが言った方法(viewPager、複数の断片、scrollView)と最も簡単な方法から何が最善の方法であるか教えてください。 – Tefa

関連する問題