반응형
사각형 두개를 겹치는 방식으로 해결
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
android:shape="rectangle">
<stroke android:width="20dp" android:color="@color/colorBlue" />
<solid android:color="#FFDDDDDD" />
</shape>
</item>
<item android:left="15dp" android:right="15dp">
<shape
android:shape="rectangle">
<stroke android:width="5dp" android:color="@color/colorWhite" />
<solid android:color="#FFFFFF" />
</shape>
</item>
</layer-list>
https://stackoverflow.com/questions/23216305/add-only-top-and-bottom-border-on-linearlayout
Add only top and bottom border on LinearLayout
I would like to add only a bottom and a top border on my Linearlayout. I have tried to do this : stackoverflow.com
반응형
'IT > Android' 카테고리의 다른 글
Kotlin] 안드로이드 토스트 메세지 위치 Toast (0) | 2020.05.11 |
---|---|
Kotlin] 안드로이드 SYSTEM_ALERT_WINDOW 권한 설정 (0) | 2020.05.07 |
Kotlin] 안드로이드 editText 엔터 눌러서 입력 (0) | 2020.04.27 |
Kotlin] 안드로이드 버튼 텍스트 대문자 해제 (0) | 2020.04.26 |
Kotlin] 안드로이드 밀어서 잠금해제 (0) | 2020.04.25 |
댓글