Android 기기 용 앱을 만들고 LinearLayout 내부에 ScrollView를 갖기 위해 노력하고 있지만이 작업을 시도하면 ScrollView가 ScrollView 이후의 모든 공간과 요소를 차지합니다. LinearLayout 사라짐 예를 들어Android : ScrollView in vertical LinearLayout
:
있는 ScrollView 경우는 없다 "전체"입니다 :
있는 ScrollView는 "전체"인 경우 :
당신이 ... 버튼 사라지는을 볼 수 있듯이
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_marginLeft="50dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="@drawable/linearlayoutbackground" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nom_des_joueurs"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginBottom="30dp" />
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/llPlayersName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/okPlayersName"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/ok"
android:background="@drawable/backgroundbutton"
android:layout_marginTop="30dp" />
</LinearLayout>
나는 원격 교육의 요소를 추가 한 후 : 다음은이 활동의 코드는 ScrollView에있는 rLayout.
모든 솔루션?
감사합니다.
동일한 해결책을 동시에 작성했는데 :-p 당신은 더 빨랐습니다. –
고맙습니다. :) – kakko76