- 博客(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
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人