Title bar mod


putting this inthe onCreate bundle will alow you to change the colour and text colour of the title bar

//title bar color
View titleView = getWindow().findViewById(android.R.id.title);
if (titleView != null) {
ViewParent parent1 = titleView.getParent();
if (parent1 != null && (parent1 instanceof View)) {
View parentView = (View)parent1;
parentView.setBackgroundColor(Color.GRAY);
}
}
this.setTitleColor(Color.CYAN);//text color

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: