[Android] UI의 필렛 레이아웃

1110 단어
네 개의 각이 모두 둥글다
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <solid android:color="@color/white" />
    <corners
        android:bottomLeftRadius="10dp"
        android:bottomRightRadius="10dp"
        android:topLeftRadius="10dp"
        android:topRightRadius="10dp" />
</shape>

위쪽 필렛, 아래쪽 직각
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <solid android:color="@color/white" />
    <corners
        android:bottomLeftRadius="10dp"
        android:bottomRightRadius="10dp"
        android:topLeftRadius="0.1dp"
        android:topRightRadius="0.1dp" />
</shape>

언급할 만하다
실제 디버깅이 필요합니다. 코드에 직각을 설정했지만 UI 레이아웃 일람에 원각을 표시하고 실제 설치 후에는 직각을 표시합니다
속을 뻔했어!!!

좋은 웹페이지 즐겨찾기