title: How can i draw a line on my own layout?
body: <pre><code>public class DrawView extends View implements OnTouchListener {
      private static final String TAG = "DrawView";
  
      List&lt;Point&gt; points = new ArrayList&lt;Point&gt;();
      Paint paint = new Paint();
  
      public DrawView(Context context) {
          super(context);.......
  </code></pre>
  
  <p>*<em>Guys i have to classes this class is for drawing line there is a long code and this is working but it is working on black, blue or any other solid color i want it to be drawn in my lay out *</em></p>
  
  <pre><code>public class matchFun extends Activity {
  DrawView drawView;
  
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
  
         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
          requestWindowFeature(Window.FEATURE_NO_TITLE);
  
          drawView = new DrawView(this);
        //  setContentView(R.layout.matchfun);
        //  setContentView(drawView);
         drawView.setBackgroundResource(R.layout.matchfun);
          drawView.requestFocus();....
  </code></pre>
  
  <p>*<em>This is the class which is inheriting the upper one i want to draw line in second class  *</em></p>
  
  <pre><code>&lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/widget0"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/back_lightblue"
      &gt;
  
  &lt;ImageView
      android:id="@+id/widget32"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_x="4dp"
      android:layout_y="118dp" 
      android:src="@drawable/ic_launcher"
      android:onClick="buttonClickHandler"
      android:clickable="true"/&gt;
  
  &lt;ImageView
      android:id="@+id/widget33"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_x="7dp"
      android:layout_y="196dp" 
      android:src="@drawable/ic_launcher"
      android:onClick="buttonClickHandler"
      android:clickable="true"/&gt;
  </code></pre>
  
  <p><strong>This my xml  Please suggest me any idea please resolve this problem im working on it from last couple of weeks and still couldnt find any solution</strong></p>