▼원문_GUIDE
http://forum.xda-developers.com/showpost.php?p=43252243&postcount=232
Thanks to "Erhany"
▼아래 그림의 빨간테두리 친것을 말합니다.
〉SystemUI.apk파일을 수정작업합니다.
〉이건 아주 간단한 작업이고 위험성도 거의 없습니다.
1- Download DataTrafik zip from attachment and unzip it.
(맨 첫머리의 xda원문 게시글에 첨부된 DataTrafik.zip파일을 다운받아 압축풀어놓고...)
2- Decompile SystemUI.apk and go into SMALI/ folder and add folder named in/.. !!!!(not inside COM folder) add inside main SMALI folder.!!!
Done.
(아래 그림처럼 SystemUI.apk/smali폴더 최상단경로에 in이라는 폴더를 통째로 넣어주면 됩니다.)
3- go to res/layout/status_bar.xml
(SystemUI/res/layout/status_bar.xml을 열어 아래 빨간색 구문을 저 위치에 추가해주면 됩니다.)
▼find the line and add red text ;
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="6.0dip" />
<com.android.systemui.statusbar.IconMerger android......
(위의 구문을 그대로 넣었을때 본인의 상단바에서 뭔가 어긋나 보이는 경우도 있을겁니다.그럴땐 사용자가 본인의 상단바에 맞게 세부적으로 수정작업을 해주면 됩니다.)
▼이건 실제 제가 제폰의 상단바에 맞게 수정한 구문입니다.
참고로,android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="2.75" 이 구문은 xml의 text에 그림자효과를 주는 구문입니다.저같은 경우는, 거의 모든 xml의 text구문에 이 구문을 추가해놓고 있습니다.(어떤 배경에서도 글자가 눈에 확띄게 잘 보입니다.)
<in.jmkl.dcsms.statusbargreper.DataTrafik android:textColor="#ffffffff" android:gravity="left|center" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="2.75" /> |
4- Save and compile.apk