yes,you are right,because system can only load the 2nd textview after
the 1st textview displayed.So "wrap_content" here may reach max length
of the line.Maybe you can use weight or length to limit the first
textview.

On Nov 4, 3:04 am, gautruc <[email protected]> wrote:
> help me:
> check my code:
>
> package com.khmt2k3.xuantung.imageview;
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.ImageView;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
> import android.graphics.Canvas;
>
> public class ImageViewActivity extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>         ImageView image = new ImageView(context);
>         Bitmap viewBitmap =
> Bitmap.createBitmap(maytinh.getWidth(),maytinh.getHeight(),Bitmap.Config.AR 
> GB_8888);
>         Canvas canvas = new Canvas(viewBitmap);
>         image.draw(canvas);
>     }
>
>
>
>
>
>
>
> }

-- 
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

Reply via email to