안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="UTF-8"?>
<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#BCBCBC" />
<padding android:bottom="0dp" android:right="0dp" android:top="0dp" android:left="0dp" />
<corners android:radius="10dp" />
</shape>
이렇게하면 각모서리 전부다 둥글게 나오는데
윗부분 두 모서리만 둥글게 나오게 하고 싶습니다.
아래는 각지게 하고조언좀 부탁드립니다.
<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#BCBCBC" />
<padding android:bottom="0dp" android:right="0dp" android:top="0dp" android:left="0dp" />
<corners android:radius="10dp" />
</shape>
이렇게하면 각모서리 전부다 둥글게 나오는데
윗부분 두 모서리만 둥글게 나오게 하고 싶습니다.
아래는 각지게 하고조언좀 부탁드립니다.
android:topLeftRadius="" -> top-left 코너의 반지름
android:topRightRadius="" -> top-right코너의 반지름
android:bottomLeftRadius="" -> bottom-left코너의 반지름
android:bottomRightRadius="" -> bottom-right코너의 반지름
각 모서리 값을 지정해주는 건데 해보진 않았지만 혹시나해서 올려놓습니다^^
성공하시면 답글 부탁드려요~궁금하네요 되는지~