加载中
android ant Compile failed; see the compiler error

android ant Compile failed; see the compiler error output for details.

android Webview 自适应屏幕

//设置加载进来的页面自适应手机屏幕 settings.setUseWideViewPort(true); settings.setLoadWithOverviewMode(true); 原文地址...

case expressions must be constant expressions

case expressions must be constant expressions

android edittext 初始不获取焦点 android 键盘隐藏

在 edittext 布局前加一个空布局 <LinearLayout         android:focusable="true" android:focusableInTouchMode="true"         android:layout_width="0dp" android:l...

android Fragment 添加back动画

FragmentTransaction transaction = getSupportFragmentManager()         .beginTransaction();     transaction.addToBackStack(null);     //第一二个参数是进入动画 后面2个是返回动画     tra...

ios学习记录-UITableView

在.h文件中加上 UIViewController<UITableViewDelegate,UITableViewDataSource>//一个是代理,一个是数据源, 在viewDidLoad中初始化 tabView=[[UITableView alloc] initWithFrame:self.view...

2013/06/06 16:11
309
ios开发日志-button+UIAlertView

去年学习过一段时间的ios开发 后来不知道为什么就没学了 最近准备重新开始学习ios开发 准备每天发一篇日志记录学习过程,也锻炼下自己的语言组织能力,代码写久了话不会说了 CGRect frame =...

2013/05/31 20:45
1.7K
java.lang.IllegalStateException: No activity 错误...

使用 public void addFragmentToStack(int containerViewId, Fragment fragment) {     if (mCurrentFragment != null) {       getSupportFragmentManager().beginTransaction()           .detach(mC...

Fragment The specified child already has a pare...

只要在 inflater.inflate(R.layout.activity_main_settings, container,false); 第三个参数加上false 就可以解决了...

android webiew 添加header

HashMap<String, String> extraHeader = new HashMap<String, String>(); extraHeader.put("ACCEPT", "text/html"); wb.loadUrl(url, extraHeader); 需要在api版本8以上...

liunx 记录

chmod a+wrx service mysqld start yum -y install gcc automake autoconf libtool make htpasswd /source/svn/project/conf/webpasswd svnserve -d -r...

2012/12/06 15:29
197
Error: Package: glibc-headers-2.12-1.80.el6_3.6...

打开yum配置文件 vim /etc/yum.conf 找到 exclude=kernel* 改成 # exclude=kernel*

2012/12/06 14:48
425
android 得到是否插入耳机设备

通过广播可以获取不过有几秒的延迟 通过读文件的方法可以是否得到 Thread thread = new Thread() {     public void run() {       while (true) {         String HEADSET_STATE_PATH = "/sys/class...

android 开启自动旋转屏幕

//0为关闭 1为开启 Settings.System.putInt(getContentResolver(),Settings.System.ACCELEROMETER_ROTATION, 1); //得到是否开启 int flag = Settings.System.getInt(getContentResolver(), ...

ios UIAlertView

UIAlertView *alert=[[[UIAlertView alloc] initWithTitle:@"title" message:@"message" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:@"取消", nil] autorelease]; [alert ...

2012/09/10 10:45
156
ios webView 加载pdf

NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:@"pdf"]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest req...

2012/09/09 22:54
5.2K
ios 学习记录 页面跳转

AboutViewController *about=[[[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil] autorelease]; //设置页面跳转效果 about.modalTransitionStyle=U...

2012/09/02 23:03
585

没有更多内容

加载失败,请刷新页面

返回顶部
顶部