0
我想從tabhost中的活動訪問在我的選項卡活動中設置的標題欄。我用什麼來打電話給家長?到目前爲止,我有這個,但它不工作:從選項卡活動中獲取選項卡(父級)視圖
View v = (View) getParent().getTitle();
TextView title = (TextView)v.findViewById(R.id.TitleLabel);
title.setText("Custom Title Text Here");