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.testfactory.color; import android.app.Activity; import android.os.Bundle; import android.text.Spannable; import android.text.style.ForegroundColorSpan; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class ColorTest extends Activity { private int roll; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); roll = 0; Button bt = (Button) findViewById(R.id.Button01); bt.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { TextView tv = (TextView) findViewById(R.id.tvText); tv.setText(R.string.hello, TextView.BufferType.SPANNABLE); // Choose between these two array. // They should do the same job but don't. First one don't work, second one does // Color array, from colors.xml /*int[] colorarray = {R.color.cl_lfs1, R.color.cl_lfs2, R.color.cl_lfs3, R.color.cl_lfs4, R.color.cl_lfs5, R.color.cl_lfs6, R.color.cl_lfs7, R.color.cl_lfs8, R.color.cl_lfs9 };*/ // Hardcoded colors int[] colorarray = { 0xFF000000, 0xFFFF0000, 0xFF05FD05, 0xFFFFFF00, 0xFF0000FF, 0xFFFF00FF, 0xFF00FFFF, 0xFFFFFFFF, 0xFFCCCCCC }; // We applies the color to the text Spannable str = (Spannable) tv.getText(); str.setSpan(new ForegroundColorSpan(colorarray[roll]),0,tv.getText().length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); roll ++; if (roll >= colorarray.length) roll = 0; } }); } }