如何自定义Android的LockScreen? [英] How to customize Android's LockScreen?

查看:169
本文介绍了如何自定义Android的LockScreen?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道已经有一些应用可以做到这一点,例如:







我想知道如何在我的应用程序中执行此操作吗?我可以使用什么类?或者我应该读什么文章?我不想更改Android的源代码。



我不知道当画面被绘制模式锁定时是否会有所不同。

解决方案

请查看此 answer a>。你需要编写自己的主屏幕应用程序,将实现锁屏行为,你需要。有一些示例代码可用于在Android SDK中编写自己的主屏幕应用


I know that there is already some apps can do this, such as:

WidgetLocker Lockscreen

Flyscreen

I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code.

And I wonder if it will be different to deal with when the screen is locked by draw pattern?

解决方案

Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK.

这篇关于如何自定义Android的LockScreen?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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