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

layout 질문입니다. 오른쪽 상단에서 약간씩 띄우고 싶은데..

0 추천
layout 질문입니다. 오른쪽 상단에서 약간씩 띄우고 싶은데..

notification layout 입니다.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff"
    android:padding="10dp" >
    
    <ImageView android:id="@+id/image"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignParentLeft="true"
        android:layout_marginRight="10dp" />
    <TextView android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/image"
        android:textColor="#000000"
        style="Custom Notification Title" />
    <TextView android:id="@+id/text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/image"
        android:textColor="#000000"
        android:layout_below="@id/title"
        style="Custom Notification Text" />
    
    <ImageButton
          android:id="@+id/finish_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right|top"
        android:layout_alignParentRight="true"
        android:background="@drawable/x"/>
  
        
    
</RelativeLayout>

 

이미지 버튼을 layout 전체에서 오른쪽 상단에 배치를 하였는데.

오른쪽 상단을 기준으로 좌측 및 아래방향으로 ←+↓ 으로 약간씩 이동시키고 싶습니다.

어떻게 해야하는지 답변 부탁드립니다.
쿠쿠부다스 (6,470 포인트) 님이 2017년 2월 1일 질문

1개의 답변

0 추천
ImageButton에 Padding 속성을 줘보세요.
Development Guy (70,570 포인트) 님이 2017년 2월 1일 답변
...