티스토리 뷰
android.R.attr 참조를 이용하여
현재 theme의 리소스 정보 얻어오기..
TypedArray a = getTheme().obtainStyledAttributes(new int[] {
android.R.attr.windowBackground
});
Drawable backgroundDrawable = a.getDrawable(0);
a.recycle();
TypedArray a = getTheme().obtainStyledAttributes(new int[] {
android.R.attr.colorBackground,
android.R.attr.textColorPrimary,
});
int backgroundColor = a.getColor(0, 0);
int textColor = a.getColor(1, 0);
a.recycle();
댓글
공지사항
- Total
- 723,103
- Today
- 10
- Yesterday
- 16
링크
TAG
- Java
- 도쿄
- 여행
- 에픽하이
- 인디
- postcrossing
- 코이데 케이스케
- 공연
- 일본
- 포스트크로싱
- 안드로이드
- 아사가야
- 일어일기
- 진해
- 노래
- 책
- 서울숲별밤축제
- 락
- Linux
- 잡담
- Mac
- 영화
- 사진
- 신주쿠
- epik high
- android
- 야마다 타카유키
- 음악
- 드라마
- 일기