Buggy code:
public class MyActivity extends Activity { private SwipeLayout sample1 ; private SwipeLayout sample2 ; private SwipeLayout sample3 ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( main ) ; sample1 = ( ( SwipeLayout ) ( findViewById ( R . id . sample1 ) ) ) ; <START_BUG> sample1 . setShowMode ( LayDown ) ; <END_BUG> sample1 . setDragEdges ( Left , Right ) ; Toast . makeText ( this , ( ( sample1 . getDragEdge ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>the<seq2seq4repair_space>drag<seq2seq4repair_space>edge" ) , LENGTH_LONG ) . show ( ) ; sample1 . addRevealListener ( delete , new SwipeLayout . OnRevealListener ( ) { @ Override public void onReveal ( View child , SwipeLayout . DragEdge edge , float fraction , int distance ) { } } ) ; sample1 . findViewById ( star2 ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Star" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample1 . findViewById ( trash2 ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Trash<seq2seq4repair_space>Bin" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample1 . findViewById ( magnifier2 ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Magnifier" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample2 = ( ( SwipeLayout ) ( findViewById ( R . id . sample2 ) ) ) ; sample2 . setShowMode ( LayDown ) ; sample2 . setDragEdge ( Right ) ; sample2 . findViewById ( star ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Star" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample2 . findViewById ( trash ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Trash<seq2seq4repair_space>Bin" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample2 . findViewById ( magnifier ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Magnifier" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample2 . findViewById ( click ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Yo" , LENGTH_SHORT ) . show ( ) ; } } ) ; sample3 = ( ( SwipeLayout ) ( findViewById ( R . id . sample3 ) ) ) ; sample3 . setDragEdge ( Top ) ; sample3 . addRevealListener ( bottom_wrapper_child1 , new SwipeLayout . OnRevealListener ( ) { @ Override public void onReveal ( View child , SwipeLayout . DragEdge edge , float fraction , int distance ) { View star = child . findViewById ( star ) ; float d = ( ( child . getHeight ( ) ) // 2 ) - ( ( star . getHeight ( ) ) // 2 ) ; ViewHelper . setTranslationY ( star , ( d * fraction ) ) ; ViewHelper . setScaleX ( star , ( fraction + 0.6F ) ) ; ViewHelper . setScaleY ( star , ( fraction + 0.6F ) ) ; int c = ( ( Integer ) ( evaluate ( fraction , Color . parseColor ( "#dddddd" ) , Color . parseColor ( "#4C535B" ) ) ) ) ; child . setBackgroundColor ( c ) ; } } ) ; sample3 . findViewById ( star ) . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Toast . makeText ( MyActivity . this , "Yo!" , LENGTH_SHORT ) . show ( ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public Object evaluate ( float fraction , Object startValue , Object endValue ) { } }

Fix:
sample1 . setShowMode ( PullOut ) ;