摘要: 做一个小项目时,想用音量键来调节屏幕亮度,但又想把系统默认的“音量调节”屏蔽掉;在网上查了一些资料,发现用onKeyDown()可以做到,用return ture; 来拦截系统操作来实现自己想要的操作。代码如下: 1 public boolean onKeyDown(int keyCode,... 阅读全文
posted @ 2013-09-13 18:55 逍遥剑臣 阅读(10446) 评论(0) 推荐(0) 编辑
摘要: 3 4 5 import com.dh.shoudiantong.screendatils.VerticalSeekBar; 6 7 import android.app.Activity; 8 import android.content.Context; 9 import androi... 阅读全文
posted @ 2013-09-13 15:56 逍遥剑臣 阅读(1290) 评论(0) 推荐(0) 编辑
摘要: android api 自带了SeekBar,但是只是水平的;现在我想要一个竖的SeekBar,这就需要我们自己来修改SeekBar的代码来实。package com.dh.shoudiantong.screendatils;import android.content.Context;impor... 阅读全文
posted @ 2013-09-13 15:50 逍遥剑臣 阅读(890) 评论(0) 推荐(0) 编辑