how to make the slide to unlock in android?
<p>This is my code and tell me that how to add the glowing text like in iPhone in slide to Unlock screen</p>

<p>please help me i am new in android.</p>

<pre><code>image.setOnTouchListener(new View.OnTouchListener() {         

        @Override
        public boolean onTouch(View v, MotionEvent event) {
            layoutParams1 = (RelativeLayout.LayoutParams) image.getLayoutParams();

        switch(event.getActionMasked())
           {
           case MotionEvent.ACTION_DOWN:
           break;

        case MotionEvent.ACTION_UP:
            x_cord = (int) event.getRawX();
          if (x_cord &lt; la.getWidth()) {
                x_cord= windowwidth-la.getWidth();
                layoutParams1.leftMargin = x_cord -(image.getWidth()-22);
                // layoutParams1.topMargin =5;
                // layoutParams1.bottomMargin =5;
                image.setPadding(5, 5, 5, 5);
                image.setLayoutParams(layoutParams1);
                image.bringToFront();
            }
            break;

        case MotionEvent.ACTION_MOVE:
            x_cord = (int) event.getRawX();
            Log.e("","X codinate= " + x_cord);

           if (x_cord &gt; la.getWidth()) {
                x_cord= la.getWidth();
                if(isCouponbuttonscroll==false){
                isCouponbuttonscroll=true;
                showDialog();
             }
            }
            if (x_cord &lt;windowwidth-la.getWidth()) {
                x_cord =windowwidth-la.getWidth();
            }
            layoutParams1.leftMargin = x_cord -(image.getWidth()+0);
            image.setLayoutParams(layoutParams1);
            image.bringToFront();
            image.setPadding(5, 5, 5, 5);

            break;
        }
        return true;
    }
    });
</code></pre>
