did you use the fully qualified name when you put it in main.xml?
e.g.: com.google.myapp.MyView
if that doesn't do it, it's hard to debug without any code--also there
are ways to draw a line without creating an extra custom view
On Mar 17, 8:05 am, "Vishwesh R." wrote:
> hi,
> im a beginner
>
my code:-
main.xml
http://schemas.android.com/apk/res/android";
android:layout_height="fill_parent"
android:clickable="true"
/>
Myview.java
package com.MyPack.canvasexample;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import and
set paint style
canvas.drawLine(100, 100, 200, 200, new Paint());
instead of new paint define pay style
On Mar 22, 11:27 am, "Vishwesh R." wrote:
> my code:-
>
> main.xml
>
>
>
> android:id="@+id/view1"
> android:layout_width="fill_parent"
> xmlns:android="http://schemas
3 matches
Mail list logo