Android 相关

来源:互联网 发布:人工智能 研究报告 编辑:程序博客网 时间:2024/04/29 06:59

1.通过typeface设置使用字体

http://www.cnblogs.com/bravestarrhu/archive/2012/07/17/2595598.html


2.为按钮添加音效

http://blog.csdn.net/qq435757399/article/details/8010015


3.windows下使用javah 出现找不到activity的问题

http://bbs.csdn.net/topics/370236601


4.获取系统当前时间

http://blog.csdn.net/bailu66/article/details/7104061

http://hi.baidu.com/justtmiss/item/befa7094eb55b931336eebd7


5.android 定时器

http://www.cnblogs.com/jqyp/archive/2011/06/14/2080543.html


6.android relativelayout属性

http://blog.csdn.net/softkexin/article/details/5933589


7.dialog

http://blog.csdn.net/ameyume/article/details/6138488

http://www.oschina.net/question/54100_32486


8.editText

http://android.tgbus.com/Android/tutorial/201108/361860.shtml


9 android 半屏运行

http://blog.csdn.net/zhangxu365/article/details/7343556


10.android 读取媒体库文件

http://www.nitrohsu.com/android-du-qu-mei-ti-ku-wen-jian.html


11.选取图片路径

http://blog.csdn.net/tempersitu/article/details/20557383


12 android 低版本使用actionbar

http://blog.csdn.net/tianjf0514/article/details/13278539


13.android方向传感器

http://blog.csdn.net/zhangjikuan/article/details/20998261


14.android 重力加速传感器

http://blog.csdn.net/octobershiner/article/details/6639040


15.android 自定义listView

http://daoshud1.iteye.com/blog/1874241


16.EditText控件,如果设置了height比较小的话,当设置背景色的时候,会出现一条白色的背景线,解决这个问题可以有两种方式:

1.调整height

2.将EditText的焦点置为false.将焦点置为false后,采用以下方案才能重新获得焦点,并弹出输入法

mEditText.setFocusable(true);
mEditText.setFocusableInTouchMode(true);
mEditText.requestFocus();

如果期待,按下enter键时,editText不再捕获焦点,可以将其最外层的父控件设置

android:focusable="true"
 android:focusableInTouchMode="true"

其他设置方式经测试不生效


android opengl onDrawFrame貌似不可以设置回调频率(每秒多少frame)

ios 可以设置回调频率的 preferredFramesPerSecond = 30(默认30)

0 0
原创粉丝点击