마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 레이아웃 possibly useless 질문

0 추천

This HorizontalScrollView layout or its LinearLayout parent is possibly useless

이클립스에서 에러는 아니고 경고로 뜨는데요 깔끔하게 없애고 싶습니다.

경고 위치는 HorizontalScrollView 선언부 입니다.

어떻게 고쳐야 경고 없이 깔끔하게 할 수 있을까요??

 

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.bookmission01.MainActivity" >
   
    <HorizontalScrollView
        android:id="@+id/hscroll01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginBottom="5dp">
        <ScrollView
            android:id="@+id/vscroll01"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
            <ImageView
                android:id="@+id/imgview01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/aa"
                android:contentDescription="@string/descriptionIMG01" />
        </ScrollView>
    </HorizontalScrollView>
   
   
   
</LinearLayout>
 

평화기사 (120 포인트) 님이 2014년 8월 4일 질문

1개의 답변

0 추천

LinearLayout  가 필요 없다네요. 지워버리세요 

Gioskhan (12,060 포인트) 님이 2014년 8월 4일 답변
...