Ya thanks for your reply...

But my doubt is suppose we are drawing a rectangle to screen resolution of 
480*800 using the following code


public class DrawView extends View {

    Paint paint = new Paint();


    public DrawView(Context context) {
        super(context);
    }

    @Override
    public void onDraw(Canvas canvas) {
        paint.setColor(Color.BLACK);
        paint.setStyle(Style.STROKE);

         canvas.drawRect(50, 30, 80, 80, paint);  
        }
}

Then how to make sure that this will be compatabile(appears perfectly) with 
all the android devices.

Main point here is how to make canvas 
drawing(rectangle,oval,..etc)compatible with all android devices

Thanks in advance

On Tuesday, February 19, 2013 8:38:52 PM UTC+5:30, bob wrote:
>
> I would just put your stuff in drawable-nodpi to start with.  That way 
> nothing will get scaled unless you explicitly make it scaled.
>
>
>
> On Tuesday, February 19, 2013 8:40:29 AM UTC-6, janvi wrote:
>>
>> Hello all
>>
>> Iam new to canvas android development.I  want to develop an android app 
>> using canvas,but how to give support to diiferent devices(hdpi,ldpi,mdpi) 
>> is bothering me alot.
>>
>> Any suggestions would be appreciated plz help me out thank you in 
>> advance....
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to