준비물은 역시나 Keyguard.apk 입니다.
이걸 디컴파일하여
keyguard_sec_clock_view.xml 을 여세요
그리고.. <include android:layout_gravity="bottom" layout="@layout/sec_adaptive_event_container_small" />
이 구문을 복사한다음 지우시고.....
keyguard_sec_status_view.xml 여세요
</com.android.keyguard.sec.SecKeyguardStatusView> 위에 복사한 구문을 추가하세요.
<include layout="@layout/keyguard_sec_clock_view" />
<include layout="@layout/sec_my_profile" />
<include android:layout_gravity="bottom" layout="@layout/sec_adaptive_event_container_small" />
</com.android.keyguard.sec.SecKeyguardStatusView>
이 상태면 됩니다.
이렇게 수정하면 개인메시지에서든......시계에서든.... 날씨와 만보계가 표시가 됩니다.
하지만..이렇게만 수정하면.... 날씨 등이 위로 붕떠잇죠.
<include android:layout_gravity="bottom" layout="@layout/sec_adaptive_event_container_small" />
그러므로 우리는 이 구문의 위치를 세밀히 조정할 필요가 있습니다.
제 세나롬 (s5 키가드)의 경우
<include layout="@layout/keyguard_sec_clock_view" />
<include layout="@layout/sec_my_profile" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="150.0dip" />
<include layout="@layout/sec_adaptive_event_container_small" />
</LinearLayout>
</com.android.keyguard.sec.SecKeyguardStatusView>
이렇게 수정해주었습니다.
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="150.0dip" />
로 붕떠있는 날씨를 아래로 내려버린것이죠 ㅎ
android:layout_height="150.0dip" 이게 중요합니다.
기종마다 값을 다르게 할 필요가 있거든요.
자신의 폰에 맞지 않는다 싶으면... 저 숫자를 변경하세요
끝