setting sample1 to laydown mode

This commit is contained in:
HarshEvilGeek 2014-12-23 10:23:28 +05:30
parent c5d3e6743e
commit 14c3135029
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class MyActivity extends Activity {
//sample1
sample1 = (SwipeLayout) findViewById(R.id.sample1);
sample1.setShowMode(SwipeLayout.ShowMode.PullOut);
sample1.setShowMode(SwipeLayout.ShowMode.LayDown);
sample1.setDragEdges(SwipeLayout.DragEdge.Left, SwipeLayout.DragEdge.Right);
Toast.makeText(this, sample1.getDragEdge() + " is the drag edge", Toast.LENGTH_LONG).show();
sample1.addRevealListener(R.id.delete, new SwipeLayout.OnRevealListener() {