Tìm tới thư mục apktool/SystemUI/res/layout/ mở file asus_status_bar.xml với notepad++,tìm code sau:
<com.android.systemui.statusbar.policy.AsusClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ffffffff" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:shadowColor="#89000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="1.5" android:paddingStart="6.0dip" android:strokeColor="#ff8f8f8f" android:strokeAlpha="0.4" android:strokeWidth="1.0dip" />
Xóa nó đi và chèn code sau vào vị trí như hình
Và chèn code sau vào vị trí như hình:Thêm 2 file ảnh sau vào thư mục tương ứng với từng loại ZenMã:<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:alpha="0.8"> <com.android.systemui.statusbar.policy.Clock android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> </LinearLayout>Sau đó thay thế dòng sau:bằng code sau:Mã:<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">Mã:<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">Đóng gói SystemUI2.MOD 2 CÁNH CHIM 2 BÊN ĐỒNG HỒTìm code sau:<com.android.systemui.statusbar.policy.Clock android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />Thêm code sau lên trên nó<TextView android:background="@drawable/canhtrai" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />Tiếp tục thêm code sau xuống dưới nó như ảnh<TextView android:background="@drawable/canhphai" android:gravity="right" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
https://www.fshare.vn/file/TKKCJ3RW4T/ Lưu lại và đóng gói SystemUI
3.MOD ANALOG
Bước đầu tiên là phải chia thanh bar làm 2 dòng
Kick vào đây để xem
Code Analog
<AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
Chúng ta có thể đặt nó ở bất cứ vị trí nào chúng ta muốn
ở giữa : Thụt vào 4 dòng so với code <LinearLayout
Bên Trái :
Bên phải
Tải file này về https://drive.google.com/file/d/0B_v2u8ZA5UiwM0h6VEhQdm5wVTg/view?usp=sharing Giải nén ra rồi chép vào thư mục
c:\apktool/SystemUI/res/drawable-hdpi với Zen4,Zen4.5 c:\apktool/SystemUI/res/drawable-xhdpi với Zen5,Zen6
Đóng gói SystemUI
Nếu không thích icon đồng hồ mình sưu tập các bạn có thể down app analog clock android tại https://play.google.com/store/apps/details?id=smsr.com.acc&hl=vi về giải nén thư mục res rồi vào thư mục drawable-xxhdpi tìm icon đồng hồ mình thích nhé. Kim dài các bạn đổi tên thành a_hour.png Kim phút các bạn đổi tên thành a_minute.png Biểu tượng đồng hồ các bạn đổi tên thành a_circle.png




Không có nhận xét nào:
Đăng nhận xét