2011/03/172 [Android] 문자열로 Resource 가져오기 문자열로 해당 Resource (혹은 레이아웃에 포함된 View) 의 ID 값을 가져온다; ----------------------------------------------------------------- getResources().getIdentifier(파일명, 디렉토리명, 패키지명); 또는, getResources().getIdentifier(패키지명:디렉토리/파일명, null, null); 으로도 가능하다. ----------------------------------------------------------------- String resName = "@drawable/imgEnd"; String packName = this.getPackageName(); // 패키지명 int resID .. 2011. 3. 17. [Android 팁] 한글 Logcat보기 1. cmd 창 열기 2. chcp 65001 3. 폰트를 Lucida Console 로 변경. 4. adb logcat 2011. 3. 17. 이전 1 다음 반응형