Android Question Title color

Stern0m1

Member
Licensed User
Is there currently an easy way to change the title color?

The only I figured out how to do it is with creating a javaobject with:
B4X:
#IF JAVA


import android.graphics.drawable.ColorDrawable;
import android.graphics.Color;
import android.view.View;

public void bar()
{
ColorDrawable gd = new ColorDrawable(Color.GRAY);
View title = getWindow().findViewById(android.R.id.title);
View titleBar = (View) title.getParent();
//titleBar.setBackgroundDrawable(new ColorDrawable(Color.Gray));
titleBar.setBackgroundDrawable(gd);
}


#End If


I modified what I found here http://stackoverflow.com/questions/9014944/android-gradient-application-title-bar

Thanks
 
Top