My activity screenshot having red highlight area where i want to set title
I inflated a view in my activity.I want to set a title for it, setTitle
and label
tag in manifest is not working i have tried like thousand times.
How to set title in highlighted area of screenshot my code for this is below
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);