<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="6dp"/>
<solid android:color="#31222222"/>
</shape>
./drawable 폴더에 자신이 원하는 shape xml을 생성한다. 만약 shape.xml이라고 파일을 저장했으면
사용하고자하는 layout xml에서
<Button
android:id="@+id/btnRefresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:background="@drawable/shape_round_mid_refreshbtn"
/>
위와같이
android:background="@drawable/shape_round_mid_refreshbtn"
를 이용해서 shape를 정의해주면
'소프트웨어 > Android/Java/Ndk' 카테고리의 다른 글
Android] PendingIntent의 Noti값이 onReceive시 변하지 않을때 (0) | 2013.12.27 |
---|---|
Android] WifiManager를 이용해서 설정을 변경하였을때는 (0) | 2013.12.24 |
Android] java. TXT파일을 읽어서 특정부분 지우기 (1) | 2013.12.23 |
Android] ConnectivityManager를 이용한 3g 4g wibro wifi 통신 체크 (0) | 2013.12.20 |
Android] Service가 Kill당했을때 Activity의 복구 (0) | 2013.12.20 |
Android] Service상에서 Activity 띄우기 (0) | 2013.12.20 |
Android] 위젯 만들기 2 - 클릭이벤트 먹이기 (0) | 2013.12.14 |