본문 바로가기

개발도구/aOS - 안드로이드 개발

이미지 와 이미지 사이 간격 없애기


<LinearLayout 
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
   android:orientation="vertical"
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/popLayout"
   android:layout_margin="0px"
   android:textColor="#FFFFFF">
   <FrameLayout 
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:textColor="#FFFFFF">
   
      <ImageView 
     android:layout_width="fill_parent"
     android:layout_height="46dip"    
     android:gravity = "center"
     android:background="@drawable/cartoon_viewpage_bg_tit"
     />
   <Button android:id="@+id/icon_refresh" android:layout_width="wrap_content"
      android:layout_height="wrap_content" android:text="refresh" android:layout_gravity="right" />
  </FrameLayout>
   <ImageView 
     android:layout_width="fill_parent"
     android:layout_height="30dip"    
     android:gravity = "center"
     android:layout_marginTop="-10px"
     android:background="@drawable/cartoon_viewpage_bg_tit"
     />
  </LinearLayout> 

버튼, 이미지 등등 모두 양테두리에 투명 간격이 존재한다.
그 간격을 없애주기 위해 마진 0으로 해보아도 되질 않는다.
정답은 : 마진을 -(마이너스) 값을  줄경우 벌어진 간격을 줄일수 있다.!

'개발도구 > aOS - 안드로이드 개발' 카테고리의 다른 글

버튼 정렬  (0) 2011.05.17
LinearLayout RelativeLayout 다른 정렬방법  (0) 2011.05.17
Layout 고급  (0) 2011.05.17
AbsoulteLayout  (0) 2011.05.17
TableLayout  (0) 2011.05.17