title: How to draw a line using finger ?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8287949/android-how-to-draw-a-smooth-line-following-your-finger">Android How to draw a smooth line following your finger</a>  </p>
  </blockquote>
  
  
  
  <p>I have created the layout using the following code:</p>
  
  <p><strong>activity_hand_write_demo.xml</strong></p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:padding="5dp"&gt;
  
        &lt;LinearLayout android:orientation="vertical"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
      android:background="@drawable/custom_border"&gt;
     &lt;TextView android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:textSize="20dp"
      android:textColor="#FFFFFF"
      android:gravity="center_horizontal"
      android:background="#AAAAAA" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>custom_border.xml in drawable</strong></p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"               android:shape="rectangle"&gt;
    &lt;corners android:radius="20dp"/&gt;
    &lt;padding android:left="10dp" android:right="10dp" android:top="10dp" android:bottom="10dp"/&gt;
  &lt;solid android:color="#1ABCD1"/&gt;
   &lt;/shape&gt;
  </code></pre>
  
  <p><strong>HandWriteDemo.java</strong></p>
  
  <pre><code>  package com.example.handwritedemo;
    import android.os.Bundle;
    import android.app.Activity;
  
  
       public class HandWriteDemo extends Activity {
  
   @Override
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hand_write_demo);
  
          } 
     }
  </code></pre>
  
  <p>Now I want to draw a line as my finger moves . I got stuck How to achieve this either by touch listener or some other way .</p>
  
  <p>If any one knows ...</p>