显示自定义信息锁定屏幕在Android中 [英] Display Custom Information on Lock Screen In Android

查看:131
本文介绍了显示自定义信息锁定屏幕在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自定义锁屏。

默认锁屏是这样的。

The default Lock screen is like this.

我想修改锁定画面+的这一部分;让其他都保持不变。 当用户锁定自己的手机,它应该显示在该红色框自定义信息。

I want to modify this portion of the Lock Screen & Let all other things remain the same. When user locks his phone, it should display custom information on that red box.

到目前为止,我还见过一个应用程序,并类似这样的事情的东西:<一href="https://market.android.com/details?id=com.teslacoilsw.widgetlocker&feature=search_result">WidgetLocker

So far i have seen one app that does something similar to this things : WidgetLocker

计算器搜寻至今:

<一个href="http://stackoverflow.com/questions/3180654/is-there-a-way-to-override-the-lock-pattern-screen/3181119#3181119">Is有没有办法覆盖锁定模式屏?它说不可能的。

的Andr​​oid锁屏小工具(凯文TeslaCoil的回答)这个真告诉的东西

Android Lock Screen Widget (Kevin TeslaCoil's Answer) This really tells something

个性锁屏为Android 不明白的人士说。

我怎样才能做到这一点?

How can i achieve that ?

鸭preciate你的帮助。

Appreciate your help..

推荐答案

从我收集,你写你的锁屏,然后禁用默认的。您可以侦听屏幕打开和关闭事件再由基本使您的自定义locksceen一个发射器禁用主页按钮。

From what I gather, you have to write your lockscreen, then disable the default one. You can listen for screen on and off events then disable the home button by basically making your custom locksceen a launcher.

这已经问过这里:机器人如何开发自定义锁屏

在这里:的Andr​​oid锁屏API

这篇关于显示自定义信息锁定屏幕在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆