[go: up one dir, main page]

Skip to content

Kilnn/SlideListView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlideListView

Use for Android ListView slide delete etc.

How To Use

1、add in you layout.xml

<com.roamer.slidelistview.SlideListView  
    xmlns:slide="http://schemas.android.com/apk/res-auto"  
    android:id="@+id/list_view"  
    android:layout_width="match_parent"  
    android:layout_height="match_parent"  
    slide:slideAnimationTime="200"  
    slide:slideLeftAction="scroll"  
    slide:slideMode="both"  
    slide:slideRightAction="scroll" />  

2、implement SlideBaseAdapter,overriad getFrontViewId(),getLeftBackViewId(),getRightBackViewId() method

@Override  
public int getFrontViewId(int position) {  
    return R.layout.row_front_view;  
}  
  
@Override  
public int getLeftBackViewId(int position) {  
    return R.layout.row_left_back_view;  
}  
  
@Override  
public int getRightBackViewId(int position) {  
    return R.layout.row_right_back_view;  
}  

See also

About

Use for Android ListView slide delete etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages