2012-10-24 120 views

回答

0

我認爲動態創建TextView。

TextView tv=new TextView(this); 
    tv.setText("Your Title"); 

或者,如果使用相同的XML的TextView然後: -

TextView tv=(TextView)findViewById(R.id.xmlname); 
    tv.setText("title"); 
0

你能不能設置的標題:

ActionBar ab = getSupportActionBar(); 
    ab.setTitle("yourTitle"); 
每次更改選項卡時