MySwipeLayout

MySwipeLayout是模仿QQ聊天item左右滑动删除的控件,该控件可以作为一个ParentGroup,里面的第一部分的layout是InVisibleArea,第二部分的layout时VisibleArea,这两个layout可以设置一定的宽度,其中也可以包含其他的widght。其中google的v4包里面还有SwipePullToRefresh,内部的刷新控件,但是当里面有ViewPage或者是其他的滑动控件时,需要重写一个方法,public  void  initPager(View  touchView){touchView.setOnTouchListener(new OnTouchListener(){public  boolean onTouch(View v,MotionEvent event){

     SwipeFreshLayout.setEnable(false);

    switch(event.getAction){

    case   MotionEvent.Action_up:

        SwipeFreshLayout.setE

       break;

})}

posted on 2015-05-29 18:17  师傅康  阅读(150)  评论(0)    收藏  举报

导航