3 - Bác
@phan_tq cho mình mượn mấy cái file bác nhé
Mod âm lịch kiểu đơn giản và dể làm
Decompile Miuisystemui.apk đả deodex nhé
Chép file này vào đúng theo đường dẩn
MiuiSystemUI/smali/com/android/
https://drive.google.com/open?id=0B-5fwDO-_cUTTmo0eVAyZkowZVE
Theo đường dẩn sao
Miuisystemui/res/layout/status_bar_expanded_header.xml
Tìm code này
Mã:
<com.android.systemui.statusbar.ColorImageTextView android:entries="@array/duration_entries" android:id="@id/temperature" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" android:layout_alignParentBottom="true" android:entryValues="@array/duration_entryValues" android:layoutDirection="ltr" />
Xoá 2 code nằm dưới code trên đó
View attachment 48499
Xong chép vào lại chổ xoá đó 3 code này
Mã:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Weather" android:textSize="11.0dip" android:id="@id/date_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_weather_description" android:layout_alignParentBottom="true" android:layout_marginStart="10.0dip" android:layout_toEndOf="@id/temperature" />
<com.android.nongphan.Amlich.DuongLich2AmLich android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textSize="10.0dip" android:textColor="#ccffffff" android:id="@id/amlich" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="13.0dip" android:layout_alignParentBottom="true" android:layout_marginStart="8.0dip" android:layout_toEndOf="@id/temperature" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Weather.Description" android:textSize="10.0dip" android:textColor="#ccffffff" android:id="@id/weather_description" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="10.0dip" android:layout_above="@id/date_time" android:layout_marginStart="10.0dip" android:layout_toEndOf="@id/temperature" />
Mở res/values/ mở ids.xml thêm code này vào cuối cùng trên cái code </resources>
Mã:
<item type="id" name="dayofweek">false</item>
<item type="id" name="amlich">false</item>
Mình xin nói thêm code âm lịch với code ngày tháng nếu nhiệt độ 2 chử số nó sẻ nhảy ra và 1 chử số nó sẻ nhảy vào theo lại sẻ ko bị chử sai lệt...
Riêng code này
Mã:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Weather.Description" android:textSize="10.0dip" android:textColor="#ccffffff" android:id="@id/weather_description" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="10.0dip" android:layout_above="@id/date_time" android:layout_marginStart="10.0dip" android:layout_toEndOf="@id/temperature" />
Nếu muốn hiển thị thêm báo thời tiết dông bảo hay gì gì đó thì sửa lại thế này mặc định mình tắt nó đi
Mã:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Weather.Description" android:textSize="10.0dip" android:textColor="#ccffffff" android:id="@id/weather_description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:layout_above="@id/date_time" android:layout_marginStart="10.0dip" android:layout_toEndOf="@id/temperature" />
Ok xong hết rồi đó lưu lại và Recompile bỏ vào lại chổ củ
View attachment 48500