注册文件里面写上这句代码就ok了!!!可能网上会有很多答案,但是经本人试验,这种靠谱。也许不同的情况下有不同的解决吧!!windowSoftInputMode属性设置值说明。attributes:android:windowSoftInputMode活动的主窗口如何与包含屏幕上的软键盘窗口交互。这个...
分类:
其他好文 时间:
2014-05-10 08:06:14
阅读次数:
301
将Activity显示成Dialog的形式:Tip: If you want a custom
dialog, you can instead display an Activity as a dialog instead of using the
Dialog APIs. Simply creat...
分类:
其他好文 时间:
2014-05-10 07:52:33
阅读次数:
369
public class MainActivity extends
ActionBarActivity { private static ActivityManager am; private static List
appList; private static List ta...
分类:
其他好文 时间:
2014-05-10 07:49:35
阅读次数:
256
NS_CLASS_AVAILABLE_IOS(6_0) UIRefreshControl
有个毛病有时会出bug 动画下拉就不动了,这里给出修复处理:@interface UICollectionView
(FixRefreshControlJump)@end#import "UICollectio...
分类:
移动开发 时间:
2014-05-10 07:44:40
阅读次数:
529
今天用Ant打包Android,apk,运行出现了batch_build.xml Class not
found:
javac1.8的错误,后来上网查了一下是Ant版本太低,低于1.9,无法和java1.8兼容,因为我的java运行环境是1.8的,Ant版本也是1.8,所以就只有升级Ant版本了.....
分类:
编程语言 时间:
2014-05-10 07:43:43
阅读次数:
391
QWidget工程 1 #include "mywidget.h" 2 #include
"ui_mywidget.h" 3 #include 4 #include 5 #include 6 #include 7 8
MyWidget::MyWidget(QWidget *parent) ...
分类:
编程语言 时间:
2014-05-10 06:36:46
阅读次数:
354
http://wiki.eoeandroid.com/Android_Training
Android小白成长之初级篇...
分类:
移动开发 时间:
2014-05-09 21:46:46
阅读次数:
297
获取android设备可用的本地存储空间剩余大小Filedatapath=Environment.getDataDirectory();StatFsdataFs=newStatFs(datapath.getPath());longsizes=(long)dataFs.getFreeBlocks()*(long)dataFs.getBlockSize();longavailable=sizes/((1024*1024));
分类:
移动开发 时间:
2014-05-09 21:29:46
阅读次数:
427
当我们在Launcher界面单击一个应用程序图标时就会启动一个程序,那这一个过程究竟发生了些哪样呢?让我们跟踪Launcher源码来分析一下吧。先上流程图:step1、追踪Launcher从源码中我们可以发现Launcher其实也是一个程序,它继承于Activity。找到该文件中的onCreate()方法,代码..
分类:
移动开发 时间:
2014-05-09 21:22:25
阅读次数:
497
(1)程序说明
在android API的AudioManager中,提供了调节手机音量的办法。
audioMa.adjustVolume(AudioManager.ADJUST_LOWER, 0);audioMa.adjustVolume(AudioManager.ADJUST_RAISE, 0);也可以调节手机声音的模式为震动或者静音
audioMa.setRingerMode(A...
分类:
移动开发 时间:
2014-05-09 20:54:59
阅读次数:
464