«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Archives
Today
Total
관리 메뉴

올해는 머신러닝이다.

android titlebar 색깔 바꾸기 본문

Android/Tip&Tech

android titlebar 색깔 바꾸기

행복한 수지아빠 2011. 5. 3. 18:21
setContentView앞에서 적용해야하는 것!!
View
titleView = getWindow().findViewById(android.R.id.title);
if (titleView != null) {
 
ViewParent parent = titleView.getParent();
 
if (parent != null && (parent instanceof View)) {
   
View parentView = (View)parent;
    parentView
.setBackgroundColor(Color.rgb(0x88, 0x33, 0x33));
 
}
}