9300锁屏添加农历

锁屏农历涉及3个文件的修改:android.policy.jar、framework.jar、framework-res.apk
1.修改android.policy.jar
参照附件中ClockWidget$Clock,修改android.policy.jar\com\android\internal\policy\impl\sec\ClockWidget$Clock.smali中的.method private refreshSingleClock()V
2.修改framework-res.apk
修改\framework-res\res\layout-sw360dp\keyguard_circlelock_clockwidget.xml:
查找
<TextView android:textSize="20.0dip" android:textStyle="bold" android:textColor="#fff6f7c9" android:gravity="bottom|center" android:id="@id/zzz_date_month" android:layout_width="fill_parent" android:layout_height="24.0dip" android:layout_marginTop="2.0dip" android:shadowColor="#aa000000" android:shadowDy="2.0" android:shadowRadius="1.0" />
将24.0dip改成wrap_content
3.framework.jar修改
将附件中的Lunar.smali和Lunar$SolarTermsEnum.smali放到framework/android/util/

你可能感兴趣的:(添加)