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)
import java.util.ArrayList; import android.content.Context; import android.graphics.Canvas; import android.view.View; import android.view.ViewGroup; public class MyLayout extends ViewGroup { ArrayList adapter; public MyLayout(Context context) { super(context); } public void addView(View child, LayoutParams params) { if (adapter == null) { adapter = new ArrayList(); } adapter.add(child); super.addView(child, params); } @Override public void removeView(View view) { if (adapter != null) { adapter.remove(view); } super.removeView(view); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // TODO Auto-generated method stub // super.onMeasure(widthMeasureSpec, heightMeasureSpec); setMeasuredDimension(100, 200); } protected void onLayout(boolean changed, int wl, int wt, int l, int t, int r, int b) { int size = adapter.size(); int width = r - l, height = b - t, lastTop = 0; View lastV = null; for (int i = 0; i < size; i++) { int left, top, right, bottom; if (lastV != null) { lastTop += lastV.getMeasuredHeight(); } View item = (View) adapter.get(i); left = 0; top = lastTop; item.measure(MeasureSpec.AT_MOST, MeasureSpec.AT_MOST); right = left + item.getMeasuredWidth(); bottom = top + item.getMeasuredHeight(); item.layout(wl, wt + lastTop, left, top, right, bottom); lastV = item; } } } ====================================================== import android.app.Activity; import android.os.Bundle; import android.view.ViewGroup; import android.widget.TextView; public class MyLayoutActivity extends Activity { protected void onCreate(Bundle icicle) { super.onCreate(icicle); MyLayout ml = new MyLayout(this); for (int i = 0; i < 10; i++) { TextView tv = new TextView(this); tv.setText("str-" + i); ml.addView(tv, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); } setContentView(ml); } }