Using java Syntax Highlighting
- public class ScreenMdplOne extends ListActivity //implements OnItemSelectedListener
- {
- /** Called when the activity is first created. */
- //TextView t;
- //ListView l;
- @Override
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- TextView text_view;
- Button button;
- text_view=new TextView(this);
- text_view.setText("content overview area");
- button=new Button(this);
- button.setText("Select");
- IconTextAdapter ita=new IconTextAdapter(this);
- IconText it1 = new IconText("Audio",getResources().getDrawable(R.drawable.favicon));
- IconText it2 = new IconText("Video",getResources().getDrawable(R.drawable.bug));
- IconText it3 = new IconText("Streaming",getResources().getDrawable(R.drawable.locale));
- ita.addItem(it1);
- ita.addItem(it2);
- ita.addItem(it3);
- setListAdapter(ita);
- this.setContentView(text_view);
- }
- }
Parsed in 0.035 seconds, using GeSHi 1.0.8.4
If i do this am getting a runtime error.
Cant we have many other components along with a list.
Please help!!!!



