티스토리 뷰

drawable 폴더에 background.xml 등의 이름으로 리소스 파일을 만들고 아래 내용을 적절히 붙여넣은 후 수정하여 사용한다.


=======================================================================
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >

    <gradient
        android:angle="90"
        android:startColor="#555994"
        android:centerColor="#555994"
        android:endColor="#b5b6d2"
        android:type="linear" />

    <corners 
        android:radius="0dp"/>

</shape>

=======================================================================

'안드로이드' 카테고리의 다른 글

브로드캐스트, BroadcastReceiver  (0) 2017.03.11
댓글