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 test.test; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.os.Bundle; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; public class Test extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //Generation of the ViewGroup Button button = new Button(this); button.setText("salut"); LinearLayout layout1 = new LinearLayout(this); LinearLayout layout2 = new LinearLayout(this); LinearLayout layout3 = new LinearLayout(this); layout1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); layout1.setOrientation(LinearLayout.VERTICAL); layout1.setBackgroundColor(Color.YELLOW); layout1.addView(button); layout2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); layout2.setOrientation(LinearLayout.VERTICAL); layout2.setBackgroundColor(Color.RED); layout3.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); layout3.setOrientation(LinearLayout.VERTICAL); layout3.setBackgroundColor(Color.CYAN); layout3.addView(layout1); layout3.addView(layout2); //we'll call it cardview ViewGroup cardview = layout3; //test generation of the bitmap Bitmap originalImage = Bitmap.createBitmap(150, 183, Bitmap.Config.ARGB_4444); Paint paint = new Paint(); cardview.layout(0, 0, 100, 100); Canvas canvas = new Canvas(originalImage); cardview.draw(canvas); canvas.drawBitmap(originalImage, new Matrix(), paint); //end test generation of the bitmap //Then we try to display it ImageView imview = new ImageView(this); imview.setImageBitmap(originalImage); // only the backgroung is displayed setContentView(imview); //If we display it normally, it works //setContentView(cardview); } }