自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 集合的各种操作 归并 排序

List list2 = new ArrayList(); list2.add("1"); list2.add("2"); list2.add("3"); list2.add("4"); List list3 = new ArrayList(); list3.add("3"); list3.add("4"); list3.add("5"); list3.add(

2013-10-31 16:47:06 783

转载 java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widg

有时候需要在在代码中设置LayoutParams,自己为一个FrameLayout设置LayoutParams的时候,遇上如题问题, java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams

2013-10-28 14:41:42 1162

原创 android关于scrollview嵌套ExpandableListView的实现2

之前说listview的高度很好计算,ExpandableListiew也差不多             1.获取有多少个group,就是一级目录, 拿到group的item的高度×group数量*每两个之间的间距   这个间距一般都木有            然后将高度赋给ExpandableListView           发现直接ExpandableListView.setLayo

2013-10-24 15:34:44 2271 6

原创 android关于scrollview嵌套ExpandableListView的实现1

刚开始以为就是和listview一样,用现成的方法 public static void setListViewHeightBasedOnChildren(ListView listView) { //获取ListView对应的Adapter ListAdapter listAdapter = listView.getAdapter(); i

2013-10-24 15:04:42 1856

原创 在A、B两表之间有一个字段可以关联,现在我想用一条UPDATE语句更新A表中的某字段

create table a ( a1 int, a2 char(20) ); insert into a values(1,'111111111'); insert into a values(2,'222222222'); insert into a values(3,'333333333'); insert into a values(5,'555555555');

2013-10-21 15:01:45 856

转载 [转载]使用getIdentifier()获取资源Id

Resources resources = context.getResources(); intindentify= getResources().getIdentifier("icon", "drawable",context.getPackageName()); 第一个参数为ID名,第二个为资源属性是ID或者是Drawable,第三个为包名。  如果找到了,返回

2013-10-21 10:56:02 613

原创 查询A表在关联B中是否有没有关联到的数据

A表中有food列 B表中也有food列 要求 查询A表中在B表中food没关联的数据 例如 A   南瓜 冬瓜 西葫芦         B   南瓜 冬瓜 卷心菜 结果要把西葫芦查出来 因为西葫芦在B表中没有关联数据 select * from A as o where o.food not in (select distinct(a.food) from b as a)

2013-10-10 11:03:40 1026

android布局属性详解

简单布局资料,简单的布局属性资料。

2012-06-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除