눌림 상태를 표현하기 위해
button_event_exclamation_mark.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/exclamation_mark_pressed" />
<item android:drawable="@drawable/exclamation_mark" />
</selector>
activity_main.xml
<ImageView
android:id="@+id/ivInfo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@layout/button_event_exclamation_mark"
android:padding="15dp"/>
이런 식으로 사용하고 있습니다.
헌데 안쪽의 여백을 주는게 먹히질 않더라구요
그래서 이미지 사이즈 조정으로 해왔었는데
item 태그 안의 여백을 줄 수 있는 방법을 찾고 있는데 마땅한 방법이 안나와있어서 질문드립니다.
item 태그 안에서 이미지에 대한 여백을 어떻게 줄 수 있나요??