How do you set the title color for the new Toolbar?

Option 1) The quick and easy way (Toolbar only) Since appcompat-v7-r23 you can use the following attributes directly on your Toolbar or its style: app:titleTextColor=”@color/primary_text” app:subtitleTextColor=”@color/secondary_text” If your minimum SDK is 23 and you use native Toolbar just change the namespace prefix to android. In Java you can use the following methods: toolbar.setTitleTextColor(Color.WHITE); toolbar.setSubtitleTextColor(Color.WHITE); These … Read more

Revert to Eclipse default settings

You can reset to the default color scheme in the Window>Preferences options page. This example will be for resetting a theme used for Java. Navigate to Windows>Preferences>Java>Editor. Click on Syntax Coloring. Click “Restore Defaults” and “Apply“. Then, navigate to General>Editors. Click on Text Editors. Click on “Restore Defaults” and “Apply“. I had the same issue … Read more

How to change current Theme at runtime in Android [duplicate]

I would like to see the method too, where you set once for all your activities. But as far I know you have to set in each activity before showing any views. For reference check this: http://www.anddev.org/applying_a_theme_to_your_application-t817.html Edit (copied from that forum): protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Call setTheme before creation of any(!) … Read more

What is so special about Generic.xaml?

Every Control in WPF has a default Style that provides, among other things, the Control’s default ControlTemplate. WPF looks for the default style in a special resource dictionary in the Themes folder in the same assembly as the control. The key for the default style is provided by the Control.DefaultStyleKey dependency property, the default value … Read more

Any free WPF themes? [closed]

The only one that I have found (for sale) is reuxables. A little pricey, if you ask me, but you do get 9 themes/61 variations. UPDATE 1: A WPF Contrib project … which does have 1 theme that they never released. UPDATE 2: Rudi Grobler (above) just created CodePlex community for this … starting with … Read more

How to change theme for AlertDialog

In Dialog.java (Android src) a ContextThemeWrapper is used. So you could copy the idea and do something like: AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this, R.style.AlertDialogCustom)); And then style it like you want: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <style name=”AlertDialogCustom” parent=”@android:style/Theme.Dialog”> <item name=”android:textColor”>#00FF00</item> <item name=”android:typeface”>monospace</item> <item name=”android:textSize”>10sp</item> </style> </resources>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)