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/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值