fileName="comm_radio"
on=fileName+"_on"
off=fileName+"_off"
to="/Users/Moonian/Documents/Projects/toss/toss-android/app/src/main/res/drawable/"
xmlFileName=fileName+".xml"
fullPath=to+xmlFileName;
body="<?xml version=\"1.0\" encoding=\"utf-8\"?>
<selector xmlns:android=\"http://schemas.android.com/apk/res/android\">
<item android:state_checked=\"false\" android:drawable=\"@drawable/#{off}\" />
<item android:state_checked=\"true\" android:drawable=\"@drawable/#{on}\" />
<item android:drawable=\"@drawable/#{off}\" />
</selector>"
File.open(fullPath,'w').write(body)
'etc' 카테고리의 다른 글
[R] JRI사용시 환경변수 값 알아내기 (0) | 2013.04.30 |
---|---|
[Eclipse] 기본 인코딩 UTF-8로 변경후 기존 소스가 깨질때 (0) | 2012.12.30 |
[Android] 스팸문자/전화 차단 앱 AntiSpamSMS (0) | 2012.09.14 |
[VM] 데스크톱 가상화 VMware View & Citrix XenDesktop 사용기 (0) | 2012.07.15 |
[벤치마크] 웹사이트 속도 측정 (0) | 2012.07.03 |