Programming/Android

xml 경계선

snoohey 2016. 9. 15. 22:55

LinearLayout을 하나만들고 패딩을 1dp 와 같이 아주 얅게 설정한다음

Backgroud 색을 설정해서 사용하면 경계선처럼 보인다.


1
2
3
4
5
6
7
<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="1dp"
        android:background="@color/boundary">
</LinearLayout>
 
cs