上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 41 下一页
摘要: 方法重载(overloaded),要求方法的名称相同,参数列表不相同。方法覆盖(override),要求①方法名相同,②参数列表相同,③返回值相同如果是方法覆盖,要注意以下几种情况:1、子类方法不能缩小父类的访问权限,例如父类是public,而子类是private,这样将引起编译错误。(这是由Jav... 阅读全文
posted @ 2014-04-06 00:36 无忧之路 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 如果使用的是httpClient: try { HttpResponse response = HttpUtil.httpClient.execute(new HttpGet(url)); Header header = response.getFirstHeader("Set-Cookie"); if (header != null) { String cookies = header.getValue(... 阅读全文
posted @ 2014-04-02 12:03 无忧之路 阅读(842) 评论(0) 推荐(0) 编辑
摘要: 使用的环境:apache-mime4j-0.6.jar,httpcore-4.3.2.jar,httpmime-4.3.3.jartry { HttpPost httpPost = new HttpPost(GlobalData.urls.get("awsSub")); MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create(); multipartEntityBuilder.add... 阅读全文
posted @ 2014-04-02 11:57 无忧之路 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-04-01 22:59 无忧之路 阅读(3548) 评论(0) 推荐(0) 编辑
摘要: getSupportActionBar()方法不能用进入Library中的src下找到SlidingFragmentActivity.java,修改 public class SlidingFragmentActivity extends FragmentActivity implements SlidingActivityBase 修改为 public class SlidingFragmentActivity extends SherlockFragmentActivity implements SlidingActivityBase 阅读全文
posted @ 2014-03-29 15:31 无忧之路 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 在项目中,一进入一个页面, EditText默认就会自动获取焦点。那么如何取消这个默认行为呢?在网上找了好久,有点 监听软键盘事件,有点 调用 clearFouse()方法,但是测试了都没有! xml中也找不到相应的属性可以关闭这个默认行为解决之道:在EditText的父级控件中找一个,设置成 android:focusable="true" android:focusableInTouchMode="true"这样,就把EditText默认的行为截断了!本文出自:http://www.cnblogs.com/error404/archive/2012/ 阅读全文
posted @ 2014-03-27 20:18 无忧之路 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 如果combotree的json数据如下:[ { "id":"2", "text":"wwwww", "state":"open", "children":[ { "id":"2,7,10", "text": "aaa" }, { "text": "bbb", "id":"2,8,10" }, { 阅读全文
posted @ 2014-03-11 23:39 无忧之路 阅读(3582) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping(value = "/getForm") @ResponseBody public List getForm(String pid) { return new ArrayList(){{ add("你好") }}; } 阅读全文
posted @ 2014-03-09 01:43 无忧之路 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 我们下面使用Activity,模拟一个dialog:首先看布局: 然后是该Activitypackage cn.via.dageeeOrderFood.activity;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.GridView;import android.widg... 阅读全文
posted @ 2014-03-05 10:10 无忧之路 阅读(6926) 评论(0) 推荐(0) 编辑
摘要: 在网上找到ListView 和ScroolView 共存的方法无非是给他每个listview 重新增加高度,但是android 的设计者始终认为这并不是一种好的实现方法。但是有的时候有必须要用这种蛋疼的设计。public class Utility { public static void setListViewHeightBasedOnChildren(ListView listView) { ListAdapter listAdapter = listView.getAdapter(); if (listAdapter == nu... 阅读全文
posted @ 2014-03-05 01:46 无忧之路 阅读(658) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 41 下一页
无忧之路