Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package de.imageresizing; import android.os.Bundle; import android.view.*; import android.view.GestureDetector.OnGestureListener; import android.widget.*; import android.app.*; import android.content.*; import android.graphics.*; import android.content.res.*; public class ImageResizing extends Activity { private Resources res; private Bitmap fullBitmap; private Bitmap partialBitmap; private Matrix m; private LinearLayout main; private MyImageView imgView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getBitmap(); makeGUI(); } private void makeGUI() { main = new LinearLayout(this); main.setLayoutParams(new LinearLayout.LayoutParams(320,480)); main.setBackgroundColor(Color.WHITE); main.setOrientation(LinearLayout.VERTICAL); main.setGravity(Gravity.CENTER_HORIZONTAL); imgView = new MyImageView(this); imgView.setLayoutParams(new AbsoluteLayout.LayoutParams(80,80,50,50)); imgView.setImageBitmap(fullBitmap); main.addView(imgView); setContentView(main); } private void getBitmap() { res = getResources(); fullBitmap = BitmapFactory.decodeResource(res, R.drawable.pic); m = new Matrix(); } class MyImageView extends ImageView implements OnGestureListener { private boolean isOn = false; private GestureDetector gesture; public MyImageView(Context context) { super(context); gesture = new GestureDetector(this); } @Override public boolean onTouchEvent(MotionEvent me) { gesture.onTouchEvent(me); return true; } @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { return true; } @Override public boolean onDown(MotionEvent e) { return true; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { return true; } @Override public void onLongPress(MotionEvent e) { } @Override public void onShowPress(MotionEvent e) { } @Override public boolean onSingleTapUp(MotionEvent e) { if(!isOn) { if(e.getX() < 40) { m.setScale(2, 1); partialBitmap = Bitmap.createBitmap(fullBitmap,0,0,40,80,m,false); imgView.setImageBitmap(partialBitmap); main.invalidate(); } else if(e.getX() >= 40) { m.setScale(2, 1); partialBitmap = Bitmap.createBitmap(fullBitmap,40,0,40,80,m,false); imgView.setImageBitmap(partialBitmap); main.invalidate(); } isOn = true; } else { imgView.setImageBitmap(fullBitmap); isOn = false; } return true; } } }