package com.exercise.AndroidTitleBar;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
public class AndroidTitleBarActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
View title = getWindow().findViewById(android.R.id.title);
View titleBar = (View) title.getParent();
titleBar.setBackgroundColor(Color.CYAN);
}
}
Thank you for reading this article Set background color of title bar With URL https://x-tutorials.blogspot.com/2011/07/set-background-color-of-title-bar.html. Also a time to read the other articles.
0 comments:
Write your comment for this article Set background color of title bar above!