My activity screenshot having red highlight area where i want to set title設置充氣觀活動
一個頭銜,我膨脹的看法在我activity.I要設置一個標題爲它在清單setTitle
和label
標籤不工作我已經試過像千倍。 如何設置在屏幕截圖的高亮區域標題我這個代碼如下
FrameLayout frameLayout = (FrameLayout) findViewById(R.id.frameHome);
LayoutInflater layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
View inflate = layoutInflater.inflate(R.layout.activity_main, null, true);
frameLayout.addView(inflate);
[Android的工具欄標題中心和自定義字體(中可能的複製https://stackoverflow.com/questions/26533510/android-toolbar - 中心標題和自定義字體) –
你可以按照此鏈接https://stackoverflow.com/questions/15560904/setting-custom-actionbar-title-from-fragment –
thnx ** stanislav-bondar ** * * vishnu-kumar-singhvi **我得到了我的答案。正在努力。 –