2016-09-17 91 views
0

我有問題處理可滾動視圖。 我想要做的是讀取一個輸入並在其下面寫入相應的結果,然後再次讀取前一個輸出下的另一個輸入,等等,直到條件滿足。在android sdk中的可滾動視圖

+0

請添加一些代碼... –

+0

我不知道如何進行,所以我沒有代碼。我嘗試了它與textview使用它,但失敗了。 –

+0

添加**父滾動視圖**。然後在不同的佈局中讀取輸入,例如_relative layout_,在另一個佈局中顯示輸出,以及另一個輸入和輸出全部在** Scroll View Layout **中 – Thecarisma

回答

0

您可以使用父滾動視圖。像這樣的東西

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="wrap_content"> 

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

<!-- Your content here--> 

</LinearLayout> 
</ScrollView>