1.    java.util.ConcurrentModificationException 并行修改异常
搜索结果:
你不能在对一个List进行遍历的时候将其中的元素删除掉
解决办法是,你可以先将要删除的元素用另一个list装起来,等遍历结束再remove掉
可以这样写
List delList = new ArrayList();//用来装需要删除的元素
for(Information ia:list)
                          if(ia.getId()==k){
                                                         n++;
                                                         delList.add(ia);
}list.removeAll(delList);//遍历完成后执行删除
(重新检查问题时没再出现,暂无修改。)
 
刷新button添加在ActivityGroup所在的布局文件,并在继承ActivityGroup的类中声明button为静态属性,在子activity中,添加刷新按钮的监听方法,在子Activity的onRusume()中实现刷新方法;
private void refeshList(){
                            CommendActivity.refsh_btnButton.setOnClickListener(new OnClickListener() {
                                         
                                          @Override
                                          public void onClick(View arg0) {
                                                        // TODO Auto-generated method stub
                                                        list.clear();
                                                        pageNow = 1;
                                                        showProgressDialog(pageNow);
                                                       
                                          }
                            });
 }
              public void onResume() {
                                          refeshList();
                                          super.onResume();
                }
3.抽屉SlidingDrawer
sDrawer.setOnDrawerOpenListener(new SlidingDrawer.OnDrawerOpenListener()// 开抽屉
                            {
                                          @Override
                                          public void onDrawerOpened() {
                                          }
                            });
 
                            sDrawer.setOnDrawerCloseListener(new SlidingDrawer.OnDrawerCloseListener() {
                                          @Override
                                          public void onDrawerClosed() {
                                          }
                            });
 
 
              <SlidingDrawer android:id="@+id/sliding"
                            android:layout_width="match_parent" android:layout_height="match_parent"
                            android:orientation="horizontal" android:content="@+id/offline_listview"
                            android:handle="@+id/imageViewIcon">
                                          <ListView android:layout_width="300dp"
                                                        android:layout_height="match_parent" android:id="@+id/offline_listview"
                                                        android:divider="@drawable/line" android:cacheColorHint="#00000000" />
                                          <ImageView android:id="@+id/imageViewIcon"
                                                        android:layout_width="wrap_content" android:layout_height="wrap_content"
                                                        android:src="@drawable/icon" />
 </SlidingDrawer>