private class MyText extends LinearLayout {
private TextView text1;
/*
* private String text;
*
* public String getText() { return text; }
*
* public void setText(String text) { this.text = text; }
*/
public MyText(Context context) {
super(context);
// TODO Auto-generated constructor stub
LayoutInflater inflate = (LayoutInflater) context
.getSystemService(context.LAYOUT_INFLATER_SERVICE);
View view = inflate.inflate(R.layout.tabhost_item, this, true);
text1 = (TextView) view.findViewById(R.id.tabhost_tv);
}
public void setTextViewText(String tabhost_name) {
text1.setText(tabhost_name);
}
/*
* @Override protected void onDraw(Canvas canvas) { // TODO
* Auto-generated method stub super.onDraw(canvas); Paint p = new
* Paint(); p.setColor(Color.WHITE); p.setTextSize(10);
* canvas.drawText(text, 25, 25, p); }
*/
}