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 com.cognizant.GFM2; import java.util.Map; import android.app.Activity; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.ImageButton; import android.widget.TableLayout; import android.widget.TableRow; /* * referenced from Steven Osborn's Undroid project at: http://code.google.com/p/undroid/w/list * MANY THANKS!!! */ public class Toolbar { public static final int PICTURE_ID = 100; public static final int AUDIO_ID = 101; public static final int VIDEO_ID = 102; public static final int APP_ID = 103; public static final int PACKAGE_ID = 104; //button references public static ImageButton pictureIcon; public static ImageButton audioIcon; public static ImageButton videoIcon; public static ImageButton appIcon; public static ImageButton packageIcon; public static Activity currentActivity; public static void setup(Activity a){ currentActivity = a; //Images pictureIcon = (ImageButton) a.findViewById(PICTURE_ID); pictureIcon.setOnFocusChangeListener(toolbarFocusListener); // Audio audioIcon = (ImageButton) a.findViewById(AUDIO_ID); audioIcon.setOnFocusChangeListener(toolbarFocusListener); // Video videoIcon = (ImageButton) a.findViewById(VIDEO_ID); videoIcon.setOnFocusChangeListener(toolbarFocusListener); // Packages appIcon = (ImageButton) a.findViewById(APP_ID); appIcon.setOnFocusChangeListener(toolbarFocusListener); // AndroidApps packageIcon = (ImageButton) a.findViewById(PACKAGE_ID); packageIcon.setOnFocusChangeListener(toolbarFocusListener); } public static void setNewFocus(int focus_id){ switch (focus_id) { case 0: pictureIcon.requestFocus(); break; case 1: audioIcon.requestFocus(); break; case 2: videoIcon.requestFocus(); break; case 3: appIcon.requestFocus(); break; case 4: packageIcon.requestFocus(); break; } } private static ImageButton.OnFocusChangeListener toolbarFocusListener = new ImageButton.OnFocusChangeListener() { public void onFocusChanged(View arg0, boolean arg1) { if(arg1) { arg0.setBackground(R.drawable.background2); } else { arg0.setBackground(R.drawable.background); } } }; public static class ToolBarView extends TableLayout { public ToolBarView(Context context, AttributeSet attrs, Map inflateParams) { super(context, attrs, inflateParams); // Create row container TableRow row = new TableRow(context); // Create buttons ImageButton pictureButton = new ImageButton(context); ImageButton audioButton = new ImageButton(context); ImageButton videoButton = new ImageButton(context); ImageButton appButton = new ImageButton(context); ImageButton packageButton = new ImageButton(context); pictureButton.setId(PICTURE_ID); audioButton.setId(AUDIO_ID); videoButton.setId(VIDEO_ID); appButton.setId(APP_ID); packageButton.setId(PACKAGE_ID); // Set button images pictureButton.setImageDrawable(getResources() .getDrawable(R.drawable.image)); audioButton.setImageDrawable(getResources() .getDrawable(R.drawable.audio)); videoButton.setImageDrawable(getResources() .getDrawable(R.drawable.video)); appButton.setImageDrawable(getResources() .getDrawable(R.drawable.packed)); packageButton.setImageDrawable(getResources() .getDrawable(R.drawable.android)); // Set Padding l,t,r,b pictureButton.setPadding(0, 3, 0, 3); audioButton.setPadding(0, 3, 0, 3); videoButton.setPadding(0, 3, 0, 3); appButton.setPadding(0, 3, 0, 3); packageButton.setPadding(0, 3, 0, 3); // Set Background Image pictureButton.setBackground(getResources() .getDrawable(R.drawable.background)); audioButton.setBackground(getResources() .getDrawable(R.drawable.background)); videoButton.setBackground(getResources() .getDrawable(R.drawable.background)); appButton.setBackground(getResources() .getDrawable(R.drawable.background)); packageButton.setBackground(getResources() .getDrawable(R.drawable.background)); // Add buttons to row row.addView(pictureButton, new TableRow.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); row.addView(audioButton, new TableRow.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); row.addView(videoButton, new TableRow.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); row.addView(appButton, new TableRow.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); row.addView(packageButton, new TableRow.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); // Make columns expand to fill space setColumnStretchable(0, true); setColumnStretchable(1, true); setColumnStretchable(2, true); setColumnStretchable(3, true); setColumnStretchable(4, true); // Set row background color row.setBackground(getResources().getDrawable(R.drawable.background)); // Add row to table addView(row, new TableLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); } } }