【发布时间】:2017-08-15 07:32:16
【问题描述】:
My activity screenshot having red highlight area where i want to set title
我在我的活动中夸大了一个视图。我想为它设置一个标题,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);
【问题讨论】:
-
thnx stanislav-bondar vishnu-kumar-singhvi 我得到了答案。感谢您的努力。
标签: android android-layout android-activity title layout-inflater