겔럭시2 kt 작업 내용입니다.
저도 이제 갖 컴파일을 패스한 단계이며 여기저기 글을 읽고 정리하여 올립니다
고수님들은 이글을 보시고 수정할 부분 말씀해주시면 감사 하겠습니다.
상단바 배경색상을 이미지로 바꾸기-systemUI.apk
순정에도 이미지가 있는데도 불구하고 기본적으로 색상코드로 되어 있다
이걸 내가 원하는 이미지로 수정하는 작업이다
<순정이미지>
systemUI.apk 작업 내용 - statusbar_background.9 이미지 수정
위치: layout / drawable-hdpi 폴더
<교체할 이미지 예문>
수정하기 전에 알아야 할점
이미지는 컴파일 한후에 교체해주시고
status_bar.xml만 컴파일 해주시면 됩니다.
■ systemUI.apk 작업 내용-status_bar.xml 수정
위치 -layout/status_bar.xml
(원본)- android:background="#ff000000" 처음부분에 있다
android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants" (수정)- "@drawable/statusbar_background" 으로 수정 android:orientation="vertical" android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" 여기서 추가적으로 또 바꿔줘야한다. 만약 위에것만 수정할시 상단바 내리면 날자배경이 검정색으로 나온다. 이걸 상단바 배경과같게 하는 작업이다. <원본>-DateView 맨아래 android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> <수정>- "@drawable/statusbar_background" 으로 수정 android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">
컴파일 적용후
resources.arsc // 교체 이미지 파일 // status_bar.xml
알집으로 교체 해주는것 잊지 마시구요^^
<적용전 상단바>
<적용후 상단바>