0

이것은 이것은ScrollView 내의 상대 레이아웃이 작동하지 않습니다 ...!

<ScrollView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:fillViewport="true" 
    android:scrollbars="none"> 

    <RelativeLayout 
    android:id="@+id/SU_user_detail_parent_layout" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:background="@drawable/custom_background"> 

    <More Components here..../> 

</RelativeLayout> 
</ScrollView> 

하는 내가, 내가 여러 번 fillviewport 및 스크롤 매개 변수를 사용했지만 그것은 작동하지 않습니다있는 ScrollView 안에 부모 레이아웃으로 상대 레이아웃을 사용하고 내 abc.xml입니다 ... 어떻게 구현합니까?

 AlertDialog.Builder alertBuilder = new AlertDialog.Builder(SelectorActivity.this); 

    View view = LayoutInflater.from(SelectorActivity.this).inflate(R.layout.abc, null); 

    alertBuilder.setView(view); 
    AlertDialog d = alertBuilder.create(); 

    d.show(); 
+0

작동하지 않는 기능은 무엇입니까? –

+0

ScrollView가 작동하지 않습니다 ... –

+0

디버깅 목적으로 친절하게하지 않으면이 레이아웃을 액티비티로 구현하여 시도해 보셨습니까 ... – Jeevanandhan

답변

1

LinearLoutout을 scrollview에 추가하고 Linearlayout 내부에 상대적 레이아웃을 넣습니다.

<ScrollView 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:fillViewport="true" 
android:scrollbars="none"> 
<LinearLayout android:layout_width="match_parent" 
android:layout_height="match_parent"> 
<RelativeLayout 
android:id="@+id/SU_user_detail_parent_layout" 
android:layout_width="match_parent" 
android:layout_height="wrap_content" 
android:background="@drawable/custom_background"> 

<More Components here..../> 

</RelativeLayout> 
</LinearLayout> 
</ScrollView> 
+0

그건 올바른 해결책이 아니야 @sasikumar 사실 나는 부모 레이아웃으로 상대 레이아웃을 유지해야 해 .. !! –