How can I set the current view title(by title I mean the text shown below battery & time(in the image below that would be "Menu Sample") programmatically? I found many examples using manifest file but none from code.
Activity.setTitle() - setTitle("My New Awesome Title!");
Like this
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
this.setTitle("This is my Title");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With