như tiêu đề hôm nay mình xin hướng dẫn các bạn mod đồng hồ ra giữa mà k bị đè khi có thông báo...bài này hơi khó rờm ra...sai 1 ly đi 1 dặm , cac ban tập trung cao độ chú ý tới những dong code nhé,
+ bài này mình port bên sccn.vn hôm nay mình xin dc tạm trú tại đây nhé...
nguồn...http://sccn.vn/threads/tong-hop-cac-bai-huong-dan-mod-systemui-apk.4522/
+ facebook...https://www.facebook.com/profile.php?id=100004199264631
+đầu tiên bạn cần chuẩn bị cho minh 1 file system.apk góc chưa mod j nhé.. cái này làm cho chuẩn xong rồi bạn mod j thì chèn theo sau ...
- các bạn tải cho mình các công cụ sau đây.
+ apktool.
+ notepad++.
+ systemui.apk.
+ framework-res.apk.
b 1:if framework-res.apk và bung systemui.apk
b 2: mởsystemui
es\layout\status_bar
+ bạn tìm tới dòng..
Mã:
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
+ chèn code này vào dưới như hình..
mã:
Mã:
<linearlayout android:id="@+id/status_bar_left_side" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
+ tìm tới đoạn
mã:
</linearlayout>
+ thêm vào đó dòng code như hình
mã:
+ bây jo bạn tìm 2 dòng đến code đồng hồ như mình...
mã:
Mã:
<com.android.systemui.statusbar.policy.clock android:textappearance="@style/textappearance.statusbar.clock" android:textsize="17.0dip" android:textcolor="@color/status_bar_text_color" android:gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleline="true" android:layout_marginend="4.0dip"
xmlns:lge="http://schemas.android.com/apk/res/com.android.systemui" />
+ các bạn (dời) nó lên như mình...
+ bây jo các bạn chèn 2 đoạn code này vào dưới 2 dòng đồng mà mình vừa (cúp) lên...
mã:
Mã:
<relativelayout android:id="@+id/status_bar_right_side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<linearlayout android:id="@+id/inside_status_bar_right_side" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignparentright="true">
+ tiếp tục tìm tới đoạn...
mã:
</linearlayout>
+ chèn code vào dưới dưới nhé
mã:
Mã:
</linearlayout>
</relativelayout>
+ xong vậy là hoàn tất công đoạn chèn code.. bây jờ chúng ta cần làm cho code khoải xung đột với nhau.ở đây mình có cái file status_bar.xml các bạn tải về và làm khoảng cách sao cho giống như trong file của mình nhé......https://drive.google.com/file/d/0b-l7la4mkdnftg9jweu1cxrpsfu/view?usp=sharing
+ mình demo cái hình trước khj sửa và sau khi sửa cho các bạn xem...
+ công đoạn này rất quan trọng các bạn nhớ làm thật kỹ để tránh lỗi.....
+ trước...
+ sau...
+ok vậy là xong....mọi việc hoàn tất
+ các bạn đóng gói lại và thường thức thành quả nào.
+niếu cảm thấy hay bổ ich cho công việc thường ngày của bạn thi like cho 1like cỗ vũ tinh thần nhé
ai sao chép bài thì nhớ ghi nguồn người mod giúp mình nhé.
View more random threads:
Introducing the Rattan Pagoda Lantern—an exquisite fusion of traditional craftsmanship and modern design that adds warmth and sophistication to any setting. Crafted from natural rattan materials,...
Illuminate Your Space with...